LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   trouble automatically starting programs (https://www.linuxquestions.org/questions/linux-software-2/trouble-automatically-starting-programs-249117/)

djzanni 10-30-2004 10:54 AM

trouble automatically starting programs
 
I'm would like to automatically have my computer start my P2P program, amule, automatically at a certain time. I am familiar with the command cron, at, and batch, but I can't seem to get them working. Actually, I've only really tried "at" but I can't get it working and so I think it's probably fruitless to go on to cron if I can't get the most basic thing working.

The at command does actually work for some things, but doesn't seem to work for amule or to start other programs. So, for instance, if I type:

$ at now
at> ls > output
at> <EOT>

then it works: I get a text file called "output" that lists the contents of the directory I'm in.

However, If I do this:

$ at now
at> amule
at> <EOT>

Then nothing seems to happen. I figured, well, maybe this runs in the background so I looked at my processes using the "ps aux" command, but I didn't see any amule. I've also tried xmms just to see if that works. I also tried to put the amule command in a script file and then run the script with the "at" command, but again no success (the script does work if I run it from the command line "./at_amule.sh").

What am I doing wrong? THanks for any help you can give me.

~daveZ

crabboy 10-30-2004 11:14 AM

have you tried putting the full path to amule in the at job?

$ at now
at> /usr/local/bin/amule ( whatever the real path is)
at> <EOT>

djzanni 10-30-2004 11:26 AM

Yes, I did try that. I just tried it again, this time with xmms... didn't work.

Thanks for the suggestion, though.

~daveZ


All times are GMT -5. The time now is 11:14 PM.