fredbloggs Posted June 4, 2007 Share Posted June 4, 2007 I'm using the command %reboot% to reboot my server and then to resume where it left off on reboot and logon.This works fine for the first reboot.i.e. step1 runs, reboots, logon, step2 runs, starts reboot process but also starts running step3. The reboot completes and step3 gets killed by the reboot.step3 seems to restart after this reboot (as long as it didn't finish before the reboot completed) but you end up with a messy install.I have created a simplified config to test this and it always has the issue with the second %reboot% and not the specific command.I have attached a copy of the WPI Logfile, and as you can see @ 11:07:41 it ran "shutdown -r -f -t 30" It then followed that up at 11:07:44 by running step3.cmd and trying a new shutdown.exe (which failed because it was already running a shutdown.exe from 11:07:41)I have several %reboot% required in my final script and would appreciate any pointers that can help.TIAMarkconfig.jspn=1;prog[pn]=['Application 1'];uid[pn]=['APPLICATION1'];dflt[pn]=['yes'];cat[pn]=['Applications'];forc[pn]=['no'];cmd1[pn]=['"E:\\Install\\tidyup\\step1.cmd"'];cmd2[pn]=['%reboot% 30'];pn++;prog[pn]=['Application 2'];uid[pn]=['APPLICATION2'];dflt[pn]=['yes'];cat[pn]=['Applications'];forc[pn]=['no'];cmd1[pn]=['"E:\\Install\\tidyup\\step2.cmd"'];cmd2[pn]=['%reboot% 30'];pn++;prog[pn]=['Application 3'];uid[pn]=['APPLICATION3'];dflt[pn]=['yes'];cat[pn]=['Applications'];forc[pn]=['no'];cmd1[pn]=['"E:\\Install\\tidyup\\step3.cmd"'];cmd2[pn]=['%reboot% 30'];pn++;Step1.cmd@echo offecho This is step 1pauseStep2.cmd@echo offecho This is step 2pauseStep3.cmd@echo offecho This is step 3pauseWPI_Log.txt Link to comment Share on other sites More sharing options...
mr_smartepants Posted June 4, 2007 Share Posted June 4, 2007 Have you tried using:'%reboot%'instead of'%reboot% 30'Giving your reboot command 30 seconds seems a bit much to me. Make it immediate or substitute 5 seconds. Link to comment Share on other sites More sharing options...
fredbloggs Posted June 4, 2007 Author Share Posted June 4, 2007 I just had %reboot% 30 in there for the purposes of testing this and it was default.Have lowered the setting (%reboot% 3) and also entered a sleep command of %sleep% 4 (i.e. one second longer).This has given me a workaroumd but am still at a loss as to why it should work for the first reboot and not subsequent reboots.Thanks, maybe I should just use %reboot% and the problem will go away or not be noticed.Thx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now