[Klug-general] Recording a show on timer
Mike Evans
mike at tandem.f9.co.uk
Wed Jul 28 09:24:15 UTC 2010
'at' is a command line scheduler which comes as standard with any 'nix
style OS. in order for it to work you will need something like
/usr/sbin/atd running - but it almost certainly is already. As with
most commands you can, in a terminal window, type "man at" for the full
details. However in brief entering something like
at 3am tomorrow
> type your commands at
> the prompts here
>Ctrl-D
(Ctrl-D is end-of-file so that terminates input)
will generate a command script scheduled to run at the time specified as
the person you were logged in at at the time you ran it, starting in the
directory that was the current working directory at that time. Any
non-redirected output or error output will normally be mailed to the
user who initiated the job at their system mbox mailbox. See also
related commands atq and atrm for inspecting your scheduled jobs and
getting rid of ones you no longer want.
To try it out do:
at now + 2 minutes
> ls > directory-list.txt
>Ctrl-d
If you look in the current directory there should be no file called
directory-list.txt, but in two minutes there will be and it will contain
the output from ls. Simple really - and it's been around since the 1970's
Mike
More information about the Kent
mailing list