Re: howto start something 5 mins after boot



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.


--
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: 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: Silent Cron Jobs
    ... I tried to whip up a small cron job, I put a short script ... the crontab (or to the user named in the MAILTO environment variable ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • 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)