[ubuntu-uk] "at" command examples / usage

Terence Simpson stdin at stdin.me.uk
Tue Aug 21 18:23:19 BST 2007


Kirrus wrote:
> ----- "Tony Arnold" <tony.arnold at manchester.ac.uk> wrote:
>   
>> Kirrus wrote:
>>
>>     
>>> Can anyone give me any more useful examples of using / help with
>>> using at?
>>> <snip>
>>>
>>> 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.
>>     
>
> Hello
>
> That appears to have done the job, thank you very much!
>
> Regards,
>
> Kirrus
>
>   

Just so you know, the time goes first, then you can enter commands:

$ at 18:00
warning: commands will be executed using /bin/sh
at> run this command
at> then this one
at> <EOT>
job 6 at Wed Aug 22 18:00:00 2007

('<EOT>' is the end of the command list, it's put there when you press 
Ctrl-D, you don't type it)



More information about the ubuntu-uk mailing list