Re: Launch many scripts with reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



John Doe a écrit :
> From: Georghy <fusco@xxxxxxxxxxxx>
>   
>> 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
>
>
>       
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
>   
How do I launch a custom script at the startup?
for exemple my script installation-script
launch script 1, write in a file "prog" "script1 OK" then reboot
at startup, the system relaunch installation-script,
installation-script read the file "prog" an count 1 line
so the script launch script2 ...

Thank you so much

-- 
Cordialement, / Greetings,
Georghy FUSCO

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux