[CentOS] Cron job? or something else? help..

Benjamin Franz jfranz at freerun.com
Mon Dec 14 16:52:57 UTC 2009


Roland Roland wrote:
> Hello,
>
> i have a certain issue at hand that i'm trying to solve.
>
> there's a certain command that i need to execute 10 minutes after boot.
> how can i set that? im not very expert with cron jobs but can it be done 
> that way? i know that cronjob works on specified time but how can i set 
> it to run with '10 min after startup" as a condition ?
>
>   

In /etc/rc.d/rc.local add a line like this:

/usr/bin/at 'now + 10 min' -f /path/to/command

-- 
Benjamin Franz




More information about the CentOS mailing list