[CentOS] Launch many scripts with reboot

Rudi Ahlers rudiahlers at gmail.com
Thu Feb 11 10:53:07 UTC 2010


On Thu, Feb 11, 2010 at 12:13 PM, Georghy <fusco at wanagain.net> wrote:

> I everyone,
> I want to know how can I launch many script with reboot beetween each
> script
> ie : I launch script1 at start up then the system reboot and launch
> script2 then ...
> Thanks for all your answers
>
> --
> Cordialement, / Greetings,
> Georghy FUSCO
>
> _______________________________________________
>
> Simple :)

1. Add a line to /etc/rc.local - for exmaple "sh /root/myscript"
2. /root/myscript's contents could look like this: sh /root/runfirst
3. Now, you have say /root/script1, /root/script2, /root/script3, etc. At
the end of each script do this:

rm -rf /root/script1
echo /root/script2 > /root/runfirst






-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100211/41fb2ded/attachment.html>


More information about the CentOS mailing list