LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Automatic start of aMule (https://www.linuxquestions.org/questions/linux-software-2/automatic-start-of-amule-300514/)

underberg 03-11-2005 04:21 PM

Automatic start of aMule
 
How do I start aMule at a specific time using Kcron? I've entered /usr/bin/amule under tasks in Kcron, and set it to start at midnight, but nothing happenes. When I click on "run now" the program starts ok.....very strange! What do I do wrong, has anybody experienced the same problems?

ping_wing 03-12-2005 09:04 AM

dont know kcron,
maybe if you just type: crontab -e
and add line
01 12 * * * /usr/bin/amule

underberg 03-12-2005 12:55 PM

Hi there

I've checked my crontab and it says:

# aMule
0 0 * * * /usr/bin/amule

# Stop aMule
0 6 * * * /bin/killall amule

# This file was written by KCron. Copyright (c) 1999, Gary Meyer
# Although KCron supports most crontab formats, use care when editing.
# Note: Lines beginning with "#\" indicates a disabled task.

It stops automatically at 6am, but I need to start it manually for some reason. What is wrong in my crontab?

u

ping_wing 03-13-2005 06:28 AM

I'm afraid that amule need X display.
give command 'xhost localhost' on your xterm and change cron line to:

0 0 * * * DISPLAY=localhost:0 /usr/bin/amule

underberg 03-13-2005 09:12 AM

Thank you, it works!


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