Quote:
Originally Posted by ganeshp@moris.org Hi All,
Is there a way to execute some command and then after the command completes automatically reboot the system and then after the system reboots execute another command ?
For example look at the sequence shown below
(1) Execute command-1
(2) After the command-1 in (1) is completed,reboot the system
(3) Execute command-2
(4) After execution of command-2 reboot the sytem
Is there a way i can automate this process so that i need not reboot the system manually
Thanks and Regards
Ganesh | Hi Ganesh,
You probably mean, you want to create batch process file which runs even after reboot!
well, no operating system till now has this function of giving commands which can be followed up after reboot!
But, still give a try to 'multithread' if not sequencing tasks!
If I were you, I would probably do this
execute command -1, (estimate its time till it reaches 1) and then do
shutdown -r (estimated time)
then again you need to be present for command 2
sequencing after a reboot means a program needs to be whole (not operating system dependant) which I believe is virtually difficult!!! Perhaps, in future we may have some but I don't think so because logically that program needs to handle operating system while running in it and also with it.
anyways, all I will say is, keep researching and tweaking, so far, it does not fit in logic! |