[ubuntu-uk] "at" command examples / usage
Tony Arnold
tony.arnold at manchester.ac.uk
Tue Aug 21 16:54:09 BST 2007
Kirrus,
Kirrus wrote:
> Can anyone give me any more useful examples of using / help with using at?
> I'm trying to run this command, but its silently failing, and the man page really isn't that helpful for a newbie...
>
> user at jon:~# at scp jt.tar.gz 10.2.0.58:/opt/ltsp/ 1800
> syntax error. Last token seen: s
> Garbled time
> user at jon:~# at "scp jt.tar.gz 10.2.0.58:/opt/ltsp/" 1800
> syntax error. Last token seen: s
> Garbled time
> user at jon:~# at "scp jt.tar.gz 10.2.0.58:/opt/ltsp/" 6pm
> syntax error. Last token seen: s
> Garbled time
> user at jon:~# at 6pm "scp jt.tar.gz 10.2.0.58:/opt/ltsp/"
> syntax error. Last token seen: s
> Garbled time
>
> Any ideas/suggestions?
The man page for the at command says it reads commands from standard
input that get executed at the given time. So something like:
echo "scp jt.tar.gz 10.2.0.58:/opt/ltsp/" | at 6pm
should do the trick. (I've not tested this).
Regards,
Tony.
--
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold
More information about the ubuntu-uk
mailing list