[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: howto start something 5 mins after boot



Mumia W wrote:
Hugo Vanwoerkom wrote:
Hi,

With crontab you can start things any time or day, but not in a relative way, e.g. 5 minutes after boot run a script.

How would you do that?

Thanks!

H



You could create a bootscript that uses the "at" command, like so;

/etc/init.d/mybootinit:
echo myscript | at now + 5 minutes


Of course you'd use update-rc.d to set the runlevels you want mybootinit to start in.



Thanks guys!
I did not know :-( about at.
So all things being equal, I went for this method.
H



Reply to: