Re: howto start something 5 mins after boot



On Sun, Apr 30, 2006 at 05:08:26PM -0500, 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.

You could also use cron to do that:

@reboot echo myscript | at now + 5 minutes

(Untested, so no guarantees :-)

/M

--
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@xxxxxxxxxxxx
http://therning.org/magnus

Software is not manufactured, it is something you write and publish.
Keep Europe free from software patents, we do not want censorship
by patent law on written works.

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759

Attachment: pgpihxlGSQqxI.pgp
Description: PGP signature



Relevant Pages

  • Re: dialog package with mouse support
    ... Maybe zenity fits? ... Keep Europe free from software patents, ... They that can give up essential liberty to obtain a little temporary ... safety deserve neither liberty nor safety. ...
    (Debian-User)
  • Re: CAMELOT question
    ... If you modify a script without express written permission, ... "They that can give up essential liberty to obtain a little ... safety deserve neither liberty nor safety." ...
    (rec.arts.theatre.musicals)
  • Re: Find out the mac address
    ... How can I find out the mac address from the default gateway with a ruby ... The script runs on a linux ... They that can give up essential liberty to obtain a little temporary ... safety deserve neither liberty nor safety. ...
    (comp.lang.ruby)
  • Re: "make install" > debian package
    ... package cleanly later and take a nice .deb to install on other machines. ... Keep Europe free from software patents, ... They that can give up essential liberty to obtain a little temporary ... safety deserve neither liberty nor safety. ...
    (Debian-User)
  • Re: File in UTF-8 or local encoding
    ... >> in basicly every possible encoding in the world. ... The signed external script is then used to configure/control the ... (safety deserve neither liberty nor safety. ...
    (comp.lang.tcl)