[KLUG Members] Schedule a command

Bruce Smith members@kalamazoolinux.org
13 Dec 2002 10:34:16 -0500


> I need to replace a file at 5:30 today, but I will not be able to do
> it then.
> What would be the best way to do the following command at 5:30?
> 
> mv sample.txt.new  sample.txt
> 
> I have used cron in the past to do this, but then removed the job
> before it was scheduled to run again.  I just need it done today not
> everyday.  Is there a better way?

Yes, use the "at" command for scheduling one time jobs.


--------------------------------------------
Bruce Smith                bruce@armintl.com
System Administrator / Network Administrator
Armstrong International, Inc.
Three Rivers, Michigan  49093  USA
http://www.armstrong-intl.com/
--------------------------------------------