Re: howto start something 5 mins after boot
- From: Michelle Konzack <linux4michelle@xxxxxxxxxx>
- Date: Wed, 03 May 2006 17:09:20 +0200
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
- Prev by Date: Re: sata sucks
- Next by Date: Re: df discrepencies
- Previous by thread: Re: howto start something 5 mins after boot
- Next by thread: Re: Re: messed up my X-windows in Etch
- Index(es):
Relevant Pages
|
|