Re: howto start something 5 mins after boot



Am 2006-04-30 15:54:38, schrieb Hugo Vanwoerkom:
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?

----8<------------------------
#!/bin/bash

fnc()
{
sleep 300

YOUR_SCRIPT_HERE
}

fnc &
disown

exit 0
----8<------------------------

then call the script from whatever runlevel you want...
like

/etc/rc2.d/S99zzzz-yourscript

which would probably run as last...

Greetings
Michelle Konzack


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/3/88452356 67100 Strasbourg/France IRC #Debian (irc.icq.com)


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



Relevant Pages

  • Re: howto start something 5 mins after boot
    ... 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. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: howto start something 5 mins after boot
    ... 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. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: console keymap and console-setup
    ... for each boot. ... ensure that the script is run in the right run-levels. ... it's clearly not getting it from console-setup, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Sarge to Etch, slighrly botched
    ... XDM and XFS services are no longer started at boot, ... running a script from /etc/init.d/. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Solaris bare metal restore with IBM TSM client?
    ... Is it possible to do a wanboot and use flash archives via the ... boot> router-ip=10.3.239.62 ... Using finish script: finish_script.sh ... Executing begin script "begin_script.sh"... ...
    (comp.unix.solaris)