页面

2012-03-04

a simple case on `at'

this case makes a script and fires running it with `at' at some time. the output is redirected to a local file, instead of the default at log. the script atsay:
#!/bin/bash

exec &> ./atsay.log

echo "at is saying hello world."
fire it at some time:
$ at 15:12 -f atsay
one  may check the queued jobs with `atq' and remove jobs with `atrm'.

没有评论: