Re: Using "at" command



On Thu, 27 Mar 2008 16:55:20 -0700 (PDT), R C V wrote:
It works when I pipe the command to 'at'

a) $ ls -l | at now + 2 minutes accepts the job, but gives a very
strange output in /var/spool/mail/root....

Am I missing something while using 'at' with those commands which have
some parameters/switches.

They all executed immediately. Any output they created were given to at.

I would recommend putting any complex commands in a file
and submit the file via at.


Also how do I get the output on the screen

Redirect results in a file and use xmessage I guess. Example:

echo "ls > ls.result
xmessage -display :0 -f ls.result
" > at.job
at -f at.job now+2minutes

instead of .../mail/root..

Redirect results in a file. Example:
echo "ls > ls.result" > at.job
at -f at.job now+2minutes
.



Relevant Pages