I've a bash script that runs a ruby script that fetches my twitter feeds.
## /home/username/twittercron
#!/bin/bash
cd /home/username/twitter
ruby twitter.rb friends
It runs successfully in command line.
/home/username/twittercron
But when I try to run it as a cronjob, it ran but wasn't able to fetch the feeds.
## crontab -e
*/15 * * * * * /home/username/twittercron
The script has been chmod +x. Not sure why it's as such. Any ideas?
I'm trying to pull a report down using the following:
https://user:[email protected]/ReportServer?%2fFolder+1%2fReportName&rs:Format=CSV&rs:Command=Render
And it just pulls an html page and not the csv file. Any ideas?
Hi,
I've created a basic windows service installation using Inno Setup. both install and uninstall works properly.
However, I'm having issues with upgrading the service executable. it is needed to stop the service, and only ofter the service is completly stopped- the new executables should be placed in the target folder.
how can I execute a service-stop command and wait for the service to actually stopped before the file copy step is initiate?
thanks!
I would like to know how to use Visual Studio with CPython (the official python.org python interpreter, not IronPython).
In particular, I am interested in getting "build" and "run" commands in Visual Studio working. Other features such as color highlighting and auto-complete, I am less concerned about.
Also, can the "build" command be made to run py2exe or similar exe packagers?
I'm getting the error message when running the following code from a C# console program.
"The system cannot find the file
specified"
Here is the code:
System.Diagnostics.Process.Start("C:\Windows\System32\cmd.exe
/c");
Strangely when i omit the /c switch the command can run!?!
Any ideas what I'm doing wrong?
I have Paperclip installed as a gem and i am trying to refresh the thumbnail size of the images. I'm running this command:
rake paperclip:refresh:thumbnails CLASS=User
and receiving this error:
...rake aborted!
The specified key does not exist.
Any ideas?
Finn
I do not want:
$ cat file > dummy; $ cat header dummy > file
I want similar to the command below but to the beginning, not to the end:
$ cat header >> file
I'm beginning use the -Xmx option on the java command to allow my processes to use a little more memory (256Mb, though I think I'm currently using less than 128Mb). I've also noticed the -Xms option for starting memory, with a default value of 2Mb. What should I set this value to and why?
Reference: Java
As far as I see, git pull someRemote master tries to merge the remote branch into mine.
Is there a way to say "Completely discard my stuff, just make me another clone of the remote" using git pull? I still want to keep my own repository and keep it's history, but I want to have a 1:1 copy of someRemote's master branch after that command.
hello
i want to knw the ipaddress of my computer.
/sbin/ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
this command gives the ipaddress of my computer and print result on console but i want it in a varible sothat i can use it in my C program. How can i do that.
I'm trying to compile my project including route-me using armv7 although am struggling with the following error, i have older versions of the same project in git which compiles fine with armv7 so a setting must have changed somewhere to break it, here is the error:
Undefined symbols for architecture armv7:
"_pj_fwd", referenced from:
-[RMProjection latLongToPoint:] in libMapView.a(RMProjection.o)
"_pj_inv", referenced from:
-[RMProjection pointToLatLong:] in libMapView.a(RMProjection.o)
"_pj_init_plus", referenced from:
-[RMProjection initWithString:InBounds:] in libMapView.a(RMProjection.o)
"_pj_free", referenced from:
-[RMProjection dealloc] in libMapView.a(RMProjection.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help would be greatly appreciated.
I am newbie with git. It tried this tutorial, but after the command, i get this error:
[root@WL-0022150E7BD4 alma]$ git diff --cached
fatal: No HEAD commit to compare with (yet)
I created two file in the current directory. I dont undersitand, it is the first step in the tutorial.
What SQL can be used to list the tables, and the rows within those tables, in a SQLite database file once i've ATTACHed it on the sqlite3 command line tool?
I need explain about the four field (4 or 0 ) of ps -ef command , what the meaning of this number
THX yael
root 27116 27112 4 15:25 pts/0 00:00:00 grep -qsRw -m1 monitohhhhhhhr /var
root 29017 27113 0 15:25 pts/0 00:00:00 grep qsRw -m1
I wrote a PHP shell script which include queuing jobs in centOS with 'at' command.
The queue jobs may vary in time and contents which means the system need to keep quite a large number of jobs.
The application logic will also be a bit difficult to setup with cronjob.
Is there a limit in number of queue jobs in centOS or is there any alternative way of queuing jobs?
Hi,
I am using Boto library to write scripts for automating our jobs on AWS. My script actually starts a hadoop cluster using cloudera scripts and then does some customization. I am having a problem with retries. Seems like very command in my script fails once couple of days. I started adding retry to all the commands, but then the code is very clumsy and difficult to maintain. what do people do in general.
Thank you
Bala
How do tell a Tk widget to tell me what (or who as the case may be) its children are? Is there a command for this?
For example given a canvas widget .cvs with a label, a button and other adornments ... how do interrogate the canvas?
x
I have aproblem to replace @d&
with
frfrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr with the perl command
what the problem here? why its not replaced to frfrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
THX
yael
more test
param5= @d&
perl -pe "s/\b@d&\b/frfrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr/g if m/param5/ and not /^ *#/" test
param5= @d&
I'm using Selenium to unit test my Perl cgi script and all works fine except in one case where my cgi script returns XML content to the web browser instead of returning HTML content.
I'm new to Selenium and only pasted in their sample script to get started, but I can't seem to find a Selenium command in any of the documentation that will recognize that my XML response has been returned. The Selenium commands seem to assume that an HTML page is always being returned.
I am attempting to use the libtommath library. I'm using the NetBeans IDE for my project on Ubuntu linux. I have downloaded and built the library, I have done a 'make install' to put the resulting .a file into /usr/lib/ and the .h files into /usr/include
It appears to be finding the files appropriately (since I no longer get those errors, which I did before installing into the /usr directories).
However, when I create a simple main making a call to mp_init (which is in the library), I get the following error when I attempt to make my project:
mkdir -p build/Debug/GNU-Linux-x86
rm -f build/Debug/GNU-Linux-x86/main.o.d
gcc -c -g -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.c
mkdir -p dist/Debug/GNU-Linux-x86
gcc -o dist/Debug/GNU-Linux-x86/cproj1 build/Debug/GNU-Linux-x86/main.o
build/Debug/GNU-Linux-x86/main.o: In function 'main':
/home/[[myusername]]/NetBeansProjects/CProj1/main.c:18: undefined reference to `mp_init'
collect2: ld returned 1 exit status
make[2]: *** [dist/Debug/GNU-Linux-x86/cproj1] Error 1
So, it looks like the linker can't find the function within the library, however it IS there, so I just don't know what could be causing this. Any help would be appreciated.
I get the same error if I type the gcc command directly and skip the makefile, I also made sure the static library got compiled with gcc as well.
Edited to Add:
I get these same errors if I do the compile directly and add the library with -l or -L:
$ gcc -l /usr/lib/libtommath.a main.c
/usr/bin/ld: cannot find -l/usr/lib/libtommath.a
collect2: ld returned 1 exit status
$ gcc -llibtommath.a main.c
/usr/bin/ld: cannot find -llibtommath.a
collect2: ld returned 1 exit status
$ gcc -Llibtommath.a main.c
/tmp/ccOxzclw.o: In function `main':
main.c:(.text+0x18): undefined reference to `mp_init'
collect2: ld returned 1 exit status
$ gcc -Llibtommath.a main.c
/tmp/ccOxzclw.o: In function `main':
main.c:(.text+0x18): undefined reference to `mp_init'
collect2: ld returned 1 exit status
I am very rusty on this stuff, so I'm not sure I'm using the right command here, in the -L examples are the libraries being found? If the library isn't being found how on earth do I get it to find the library? It's in /usr/lib, I've tried it with the .a file in the current directory, etc. Is there an environment variable I need to set? If so, how, etc.
Thanks so much for the help.
I've tried a completely different library (GMP) and had the EXACT same problem. This has got to be some kind of Ubuntu environment issue? Anyone have any idea how to fix this?
VSS is resuming it's sabotage of my repository again. The repair command won't let me repair, the lock VSS doesn't seem to affect currently logged in users-- and it isn't a user, its claiming the only person logged in is admin (via the VSS admin tool!) and I have already closed all instances of the VSS admin tool and client.
How do tell a Tk widget to tell me what (or who as the case may be) its children are? Is there a command for this?
For example given a canvas widget .cvs with a label, a button and other adornments ... How do interrogate the canvas?
I have a WinForms app that I recently re-wrote in WPF and I need to release to my end users. I'd like to be able to have the users go to the ClickOnce install point for the WPF application and have their WinForm application removed so they don't have both on their machine
What's the best way (read: easiest for users) of accomplishing this?
I have thought about creating an prereq command line app to detect the old version and uninstall, but would like to avoid having to write an something like that where it only get's run once.
I use the following command to push to my remote branch:
git push origin sandbox
If I say
git push origin
Does that push changes in my other branches too, or does it only update my current branch? (I have three branches: master, production and sandbox).
(The git push documentation is not very clear about this, so I'd like to clarify this for good)
What branches/remotes do the following git push commands exactly update?
git push
git push origin
("origin" above is a remote)
(I understand that "git push [remote] [branch]" will push only that branch to the remote)