On Thu, Feb 11, 2010 at 12:13 PM, Georghy <fusco@xxxxxxxxxxxx> 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
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
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos