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

Re: howto start something 5 mins after boot



On Sun, Apr 30, 2006 at 11:23:36PM +0100, Magnus Therning wrote:
> On Sun, Apr 30, 2006 at 05:08:26PM -0500, Mumia W wrote:
> >Hugo Vanwoerkom wrote:

> >>e.g. 5 minutes after boot run a script.
> >>How would you do that?
> >
> >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.
> 
> You could also use cron to do that:
> 
>  @reboot echo myscript | at now + 5 minutes
> 
> (Untested, so no guarantees :-)
Another 'maybe workaround' could be to use @reboot to start a job with
something like this: sleep 300 && ls

Sven
-- 
If God passed a mic to me to speak
I'd say stay in bed, world
Sleep in peace
   [The Cardigans - 03:45: No sleep]



Reply to: