Autor |
Nachricht |
|
Titel: I need some help with the 'at' command
Verfasst am: 24.08.2006, 15:37 Uhr
|
|

Anmeldung: 27. Jan 2006
Beiträge: 91
|
|
Hi,
I have only dial-up and I want my computer to do a download for me while I am away. I have found that the command 'at' can help me with this, but I have some questions about its usage.
Here is one way I think I could use it:
Zitat:
vs@KanotixBox:~$ at now + 3 hours # arbitrary time to begin queued commands
warning: commands will be executed using /bin/sh
at> pon provider #this connect me to my ISP
at> wget http://www.archive.org/download/dn2006- ... 1_64kb.mp3 #fetches the example file I want
at> poff # disconnects
at> <EOT>
job 17 at Thu Aug 24 13:26:00 2006
vs@KanotixBox:~$
Another way of doing this would be:
Zitat:
vs@KanotixBox:~$ at now + 3 hours
warning: commands will be executed using /bin/sh
at> pon provider && wget http://www.archive.org/download/dn2006- ... 1_64kb.mp3 && poff
at> <EOT>
job 18 at Thu Aug 24 13:29:00 2006
vs@KanotixBox:~$
I tried both of these and in both case the first command ('pon provider') works and connects me but the download does not seem to begin.
My questions are:
1) how can I monitor in real time what part of the at command is being executed? In other words, is there a way I could make at show me the normal progress dialog of wget?
2) am I doing something wrong? is there a difference between the two methods I tried?
Many thanks,
VS |
_________________ Motto: chown -R linux:GNU world
Distros: Debian, Kanotix, Frenzy, Damn Small Linux
|
|
|
|
 |
|
Titel: RE: I need some help with the
Verfasst am: 24.08.2006, 16:19 Uhr
|
|
Anmeldung: 17. Dez 2003
Beiträge: 16792
|
|
Maybe add a sleep 10 after pon. |
|
|
|
|
 |
|
Titel: RE: I need some help with the
Verfasst am: 24.08.2006, 16:53 Uhr
|
|
Anmeldung: 09. Jan 2006
Beiträge: 1720
|
|
cronjob at time-xxx
#!bin/sh
pon
sleep 10
wget whatever you want
more commands
poff
more commands
exit; |
|
|
|
|
 |
|
Titel: RE: I need some help with the
Verfasst am: 24.08.2006, 19:58 Uhr
|
|

Anmeldung: 27. Jan 2006
Beiträge: 91
|
|
why would a cronjob be preferable to 'at'? |
_________________ Motto: chown -R linux:GNU world
Distros: Debian, Kanotix, Frenzy, Damn Small Linux
|
|
|
|
 |
|
Titel: RE: I need some help with the
Verfasst am: 25.08.2006, 02:07 Uhr
|
|
Anmeldung: 01. Feb 2006
Beiträge: 128
Wohnort: SF Bay area
|
|
My understanding is that "cron" is best for recurring events, and "at" for a one time event. Both should work, though.
Regards,
Ron |
_________________ To whom much is given, much shall be required.
|
|
|
|
 |
|
|
|