Free time scheduling in Ubuntu

Status
Not open for further replies.
OP
C

cool_techie_tvm

Ambassador of Buzz
Wohoo !! I succeeded in automating the whole process..i tested it and its working fine... here is my crontab

Code:
10 2 * * * pon dsl-provider  # BSNL Connect, 
11 2 * * * DISPLAY=:0.0 /usr/bin/deluge # Deluge, 
55 7 * * * poff dsl-provider # BSNL Disconnect,

Thanks to everyone, especially to prakash for pointing me to the right thread..
 

Rahim

Married!
Thanks praka bhai tusi great ho!!!
It was so easy( after getting the guidance here).:D
 
Last edited:

abhi_10_20

Cool and Calm
bump :neutral:

Could you help me out in doing all these with crontab:

1. hibernate(off)- 12:15 am
2. power on- 2 am
3. dsl on- 2 05 am
4. azureus on- 2 10 am
5. azureus close- 7 45 am
6. dsl off- 8 am
7. hibernate(off)- 8:05 am

can we automate all these?
 

abhinandh

Proud to be Linux
bump :neutral:
1. hibernate(off)- 12:15 am
2. power on- 2 am
those two need to be done from the BIOS.
search for scheduling featres in your BIOS if they exist.

3. dsl on- 2 05 am
4. azureus on- 2 10 am
5. azureus close- 7 45 am
6. dsl off- 8 am
7. hibernate(off)- 8:05 am
they can be configured from gnome-schedule(install it from repos)
or you can do it through CLI as mentioned above in this thread.
 

mehulved

18 Till I Die............
You maybe able to use *ubuntuforums.org/showthread.php?t=329902 for 1 and 7
for 3 to 6
Code:
crontab -e
It will open a file, it should look like this
5 2 * * * pon dsl-provider
10 2 * * * env DISPLAY=:0. azureus
45 7 * * * killall -HUP azureus
0 8 * * * poff dsl-provider
I am assuming you use pon, poff for connection and disconnection
I don't have azureus or ubuntu so I don't know the path to azureus, it would be a better idea to give the whole path.
And reading the appropriate man pages would have provided you all these answers
Or a search on your favourite search engine.
Only thing I have no idea about is how to automatically wake up from hibernate.

Also, see *ubuntuforums.org/showthread.php?t=313884 for query #2
 
Last edited:

abhi_10_20

Cool and Calm
thanks.... from what i learnt, its impossible to auto power on using crontab...bcoz cron itself needs a manual system start to up and run. So....only thing left out is by the BIOS.... i explored there....but dint find any option like that... only had 'wake on lan' but my comp is not connected to any lan......any other ideas ? :(
 

Vivek788

In the zone
hey i use crontab..and shutdown at 7.58 but as long as modem remains on..they take that much time as extra and divide total usage by time..i lost abt 800mb this month..help
 
Status
Not open for further replies.
Top Bottom