Page 1 of 1 1
Topic Options
#199474 - 2010-08-10 10:32 PM gpo startup script not waiting for shell command to finish
jvd626 Offline
Fresh Scripter

Registered: 2010-07-22
Posts: 6
Loc: Springfield, VA
Hello, I put a gpo using kix on computer configuration on startup/shutdown to install a program but the startup script doesn't wait for the program to finish. Here is my script:

script.kix file:

SHELL "%COMSPEC% /E:1024 /C setup.exe"

It works when I run manually though... Any ideas?

Top
#199481 - 2010-08-11 07:25 AM Re: gpo startup script not waiting for shell command to finish [Re: jvd626]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
Not all programs exit the way you would expect. Some call other exes and in fact do end the original process. You can try something like the following, but there is no guarantee it's going to work.

 Code:
shell "%comspec% /c start /wait setup.exe"

Top
#199486 - 2010-08-11 02:34 PM Re: gpo startup script not waiting for shell command to finish [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
Aye, matey! Arrgh! Them bloody scoundrels at Oracle are notorious for this nasty trick.. As Cap'n Bligh - er - Allen mentioned, the Start /Wait might help. For managed installs that trigger secondary EXEs like Oracle does, we've had to actually use a tool to list the processes, identify the child process that Oracle launched, and then monitor the processes continuously until that process ended. Then we could proceed with additional customization processes, log updates, etc.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199494 - 2010-08-11 09:03 PM Re: gpo startup script not waiting for shell command to finish [Re: Glenn Barnas]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4567
Loc: USA
 Quote:
Aye, matey! Arrgh!


Glenn did a stray golf ball doink you in the head?

Top
#199499 - 2010-08-12 09:25 AM Re: gpo startup script not waiting for shell command to finish [Re: Allen]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
LOL \:D
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#199500 - 2010-08-12 12:07 PM Re: gpo startup script not waiting for shell command to finish [Re: Allen]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4402
Loc: New Jersey
hey - YOU raised the Jolly Roger, not me! \:D

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#199624 - 2010-08-18 09:47 PM Re: gpo startup script not waiting for shell command to finish [Re: Glenn Barnas]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
_________________________



Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 320 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.098 seconds in which 0.074 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org