Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

How can I schedule a command using at without having to include the command in a distict file, neither from the mini at shell that reads from standard input?

That is I want to execute the command

find /path -name "pattern" > output.lst 

after X minutes.

A plausible try was

at now +X minutes find /path -name "pattern" > output.lst

but obviously it did not work.

If you are wondering why I want something like this, is because I want to include it within a scirpt where X and "pattern" are parameters.

share|improve this question
up vote 3 down vote accepted

at read the command from standard input (or a file if you specify it with -f).

This should work:

echo 'find /path -name "pattern" > output.lst' | at now +X minutes
share|improve this answer
Right on! Thx!!! – yannisf Dec 15 '11 at 14:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.