• CONTEST ALERT - Experience the power of DDR5 memory with Kingston Click for details

Free time scheduling in Ubuntu

Status
Not open for further replies.

cool_techie_tvm

Ambassador of Buzz
Lets get the facts straight. Linux noob in here.

Ok, now here is my query. I schedule downloads during the free time (2am to 8am) on my windows installation. Here is how it works. By 2:10am i get connected (using rasdial). By 2:11am, utorrent starts downloading. By 7:55am the pc is shutdown.

I want to do the something similar in Ubuntu. I connect by issuing pon dsl-provider. I have also installed deluge torrent client.

Guide me fellas on how to schedule my downloads in Ubuntu :)

This schedule thingy is the only fact thats preventing me from being on ubuntu full time.
 
OP
C

cool_techie_tvm

Ambassador of Buzz
Thanks guys. Ok i installed gnome-schedule. Now what? How do i set the connection to start at 2:10? How do i set deluge to start by 2:11am?? :(
 

Rahim

Married!
BTW i am getting this error
Code:
no crontab for rahim
while scheduling anything.
 
Last edited:

Rahim

Married!
^as you can see from my post, we both are in the same boat:D.
Hope someone guide both of us.
 

Rahim

Married!
I get that error using gnome-schedule through The Terminal.
BTW here is what i get of crontab
Code:
user@HOST:~$ crontab 
crontab: usage error: file name must be specified for replace
usage:  crontab [-u user] file
        crontab [-u user] { -e | -l | -r }
                (default operation is replace, per 1003.2)
        -e      (edit user's crontab)
        -l      (list user's crontab)
        -r      (delete user's crontab)
 

mehulved

18 Till I Die............
So, your crontab is working. Just check gnome-schedule's settings, maybe since you seem to have compiled it. It's looking for crontab in the wrong place.
 

Rahim

Married!
^^ I installed it through the repo.
the Preferences option is greyed-out even when i start it with sudo.
 

gary4gar

GaurishSharma.com
its easy as pie, no need to install any extra packages, cron itself is very powerful.

my crontab looks like

Code:
# m h  dom mon dow   command
10 2 * * * cd /home/gaurish/scripts && sh router-reboot.sh | telnet
10 2 * * * DISPLAY=:0.0 /opt/azureus/azureus
13 2 * * * wget -ci /home/gaurish/dl-list.txt
50 7 * * * cd /home/gaurish/scripts && sh router-reboot.sh | telnet

Root's crontab
Code:
50 7 * * * /sbin/shutdown -h 0
 

ray|raven

Think Zen.
its easy as pie, no need to install any extra packages, cron itself is very powerful.

my crontab looks like

Code:
# m h  dom mon dow   command
10 2 * * * cd /home/gaurish/scripts && sh router-reboot.sh | telnet
10 2 * * * DISPLAY=:0.0 /opt/azureus/azureus
13 2 * * * wget -ci /home/gaurish/dl-list.txt
50 7 * * * cd /home/gaurish/scripts && sh router-reboot.sh | telnet
Root's crontab
Code:
50 7 * * * /sbin/shutdown -h 0

Thats why i gave them that link :p

Btw, why use cd? just give the link to the script.
 
OP
C

cool_techie_tvm

Ambassador of Buzz
I understand from gary4gar's post that he has created scripts to automate the whole procedure. Am curious of these scripts. How to create custom scripts in ubuntu? If i can create them, then its easy to schedule them using crontab.
 
Status
Not open for further replies.
Top Bottom