aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Crontab - Starting and stopping Amule  (Read 3228 times)

frankO

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Crontab - Starting and stopping Amule
« on: November 17, 2005, 03:45:05 AM »

Hi,
  My Internet provider has introduced peak and off peak download limits. I would like to run Amule in the off peak time slot between 12.00am and 7.00am.
I have amule running on a Slackware server and connect to it via VNC.
I was hoping to use crontab to start and stop Amule.
I presume I can start Amule by

crontab -e
00 00***amule &

but how can I stop it nicely without using kill

Thanks
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Crontab - Starting and stopping Amule
« Reply #1 on: November 17, 2005, 06:58:05 AM »

using amulecmd. like amulecmd -c "shutdown" or something alike. search forum. (or type "help" on amulecmd)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Crontab - Starting and stopping Amule
« Reply #2 on: November 17, 2005, 07:03:58 AM »

and while you are at searching, search also for "remote.conf" so you can start amulecmd without having to type a password, since I think this would kinda be hard todo for cron ;)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Crontab - Starting and stopping Amule
« Reply #3 on: November 17, 2005, 08:08:06 AM »

amulecmd --create-config-from=/home/whatever/.aMule/amule.conf

Should be enough stefan :P
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Crontab - Starting and stopping Amule
« Reply #4 on: November 17, 2005, 09:54:55 AM »

well the result is the same :P
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2712
Re: Crontab - Starting and stopping Amule
« Reply #5 on: November 17, 2005, 11:20:26 AM »

and there's a portuguese guy working on a sheduler for aMule (see portuguese forums)...
Logged

stroesen

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
Re: Crontab - Starting and stopping Amule
« Reply #6 on: November 17, 2005, 07:29:46 PM »

Instead of killing the poor mule each sunrise, you could also use amulecmd to throttle your downloads during peak times and giving it full speed during off peak; this way you would stay queued and not loose your waiting credits (your server is up 24h a day, i guess?).
Oh, and the rest of the world could keep on downloading from you, if there is no upload limit (selfish me) :]
Logged
"I'd never join a club that accepts people like me as a member" (Groucho Marx)

frankO

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 9
Re: Crontab - Starting and stopping Amule
« Reply #7 on: November 18, 2005, 02:45:15 AM »

Quote
Originally posted by stroesen
Instead of killing the poor mule each sunrise, you could also use amulecmd to throttle your downloads during peak times and giving it full speed during off peak; this way you would stay queued and not loose your waiting credits (your server is up 24h a day, i guess?).
Oh, and the rest of the world could keep on downloading from you, if there is no upload limit (selfish me) :]

The trouble is you are still using a lot of download even if you are only uploading because of all the network communication.
Logged