Skip navigation


It’s hard to figure out how to use at — I could not find an example anywhere. What you do is type at <time> and then enter your commands at the prompt:

  at now + 1 minute
  at> touch evilfile

An end of file ends the magic, so you can pipe the command to at if you like.

  echo "touch evilfile" | at now + 1 minute

This is useful for logging off and then shutting down the computer:

  echo "poweroff" | at now + 1 minute

Not important most of the time, but it comes up if you kill the machine from screen and don’t want all those dead sessions piling up.


Post a Comment

You must be logged in to post a comment.
%d bloggers like this: