Page 2 of 2 <12
Topic Options
#129947 - 2004-11-20 02:06 AM Re: Challenge for a slow day ...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nope.
that would be your swedish-teacher.
"svenska talande pojker och flickor"

huh.
_________________________
!

download KiXnet

Top
#129948 - 2004-11-20 02:07 AM Re: Challenge for a slow day ...
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Don't mean to ask a stupid question, but what is this doing?

Code:
 
if $guarddog guarddog($guarddog) exit endif


Top
#129949 - 2004-11-20 02:10 AM Re: Challenge for a slow day ...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and to explain.
swedish teacher is the ugliest thing you can imagine.
_________________________
!

download KiXnet

Top
#129950 - 2004-11-20 06:18 AM Re: Challenge for a slow day ...
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Quote:

Don't mean to ask a stupid question, but what is this doing?

Code:
 
if $guarddog guarddog($guarddog) exit endif






the script has 2 modes....

the first mode will launch notepad.exe identify nopepads's PID and then the script calles it self again so it can run in the 2nd mode.

the 2nd moce is passed a variable $garddog=<kix pid>,<notepad pid>

when in guarddog mode, this 2nd script watches the original kix PID and when this PID is no longer running, it terminats the notepad PID.

.... confused yet

Top
#129951 - 2004-11-20 07:27 AM Re: Challenge for a slow day ...
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
ahhh... nice idea. There were some discussions on MSN about doing this, but in two scripts... cool
Top
#129952 - 2005-01-11 12:18 PM Re: Challenge for a slow day ...
Mat Offline
Lurker

Registered: 2005-01-11
Posts: 1
Loc: Amsterdam - The Netherlands
Hi

We are having the opposite problen, i.e. we need to keep the application (notepad or whatever) running after the script closes.

The really funny thing is that the script behaves differently depending on whether it was invoked (1) through group policy or (2) manually; in (1) all applications called from the script close when the script is closed by the user (there is a progress window that the user can close by clicking OK); in (2) all applications remain active (which is what we want).

The win32 specification quoted earlier on in this thread doesn't seem to explain the (1) scenario... but I read somewhere that the GPO thing starts a WSH session in which the login script runs and I am guessing that closing the script also closes the WSH and everything running in it.

Top
#129953 - 2005-01-11 12:47 PM Re: Challenge for a slow day ...
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and someone said wintendos don't understand inheritance!
_________________________
!

download KiXnet

Top
Page 2 of 2 <12


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

Who's Online
0 registered and 557 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.058 seconds in which 0.027 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