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


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • RE: crontab
    ... I have to enter my crontabs with a dot between the days field and the script ... Database Administrator ... - did u restart the cron deamon after you made changes to the crontab? ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: -- SPAM -- rc.local is not executed
    ... On 02/08/2009 01:45 PM, Abdelkader Belahcene wrote: ... I used /etc/rc.local to run at the boot a program, but it didn't, here ... # By default this script does nothing. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: cron chgrp woody
    ... those commands to crontab and skip using the script. ... has right to change group of files in that directory (=owner of those ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: My Startup Scripts wont work
    ... symlink in rc2.d for your script to launch at boot. ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: Squeeze: sometimes, bind times out (backgrounded) at boot time - Solved
    ... script add a short sleep. ... That will give the daemons time to finish ... Even the slowest or our machines boot ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)