[CentOS] Launch many scripts with reboot

John Doe jdmls at yahoo.com
Thu Feb 11 10:37:08 UTC 2010


From: Georghy <fusco at wanagain.net>
> 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 ...

Simple way would be to have a script that reads a file with a script on each line.
If the file is not empty, it would read the first line, execute the script corresponding to that line, remove that line from the file and reboot.
Rinse and repeat until the file is empty...

JD


      


More information about the CentOS mailing list