Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to list using the "at" command.

I try this:

pedro@Pedro-PC:~$ ls -l | at 10:27
warning: commands will be executed using /bin/sh
job 5 at Tue Apr 20 10:27:00 2010

But doesn't work.

share|improve this question

Your current attempt runs the command (ls -l) and passes the resulting list of files to at. This doesn't work, because a list of files isn't a list of commands. You need to use echo.

user@host:~$ echo "ls -l" | at 10:27
warning: commands will be executed using /bin/sh
job 1 at Tue Apr 20 10:27:00 2010

You could also forget the pipe (and the quotes too):

user@host:~$ at 10:27 ls -l
warning: commands will be executed using /bin/sh
job 2 at Tue Apr 20 10:27:00 2010

The output will be mailed to you (at your local user account) after it runs.

share|improve this answer

Check your local mail (you can use alpine) to see any error output from your job.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .