Page 1 of 1 1
Topic Options
#103502 - 2003-08-08 12:21 AM Script Running Interactiively
wvanaa Offline
Fresh Scripter

Registered: 2001-04-27
Posts: 18
Loc: Oshkosh, WI, US
Anyone figured out how to tell if the script is running interactively on the machine?

Here is what I am doing...

Spawning a task or tasks on my machine (or a server) using a NET VIEW list to utilize PSEXEC.exe to remotely run the login script (piece) on many remote machines.

The problem is if a message box pops up and has no timeout, it could sit indefinitely (or until the machine reboots). So if I can find a way to tell if the script is running interactively or not automatically, I could handle those message boxes. [Eek!]

Top
#103503 - 2003-08-10 01:56 AM Re: Script Running Interactiively
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
This really begs the question - why or where are you getting error messages? The point being, you should ** ALWAYS ** make your code do the work itself and never the client.

Can you post the code you have at this point?

With KiXtart 4.22, or better you could use the macro @PID to report back the PID of KIX32.EXE/WKIX32.EXE via scheduled task and notify you of any message boxes that have been running longer than say 30 minutes.. In you scheduled task, you script would be something like this {pseudocode} -

code:
IF machine-x and Flag exist
Notify
ELSE
If machine-x @PID at @TIME and @DATE = KIX32.EXE
Set a FLAG
ENDIF
ENDIF

Is this what you are looking for?

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


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

Who's Online
0 registered and 1619 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.051 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

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