Jump to content
Sign in to follow this  

Help Executing Script while Logged Out

Recommended Posts


By now I know that I can't execute a script that controls user interface while all sessions are logged out.

I have a script that is executed by scheduler.... so it will execute regardless if someone is logged in.

Part of the script executes a program and controls the UI..... so if that part is needed, the console needs to be logged in.

Because of the environment of the server, sometimes it is (logged in).... sometimes it isnt.

I wondered if a work around was to have my script look at the logged in user, at first, and if one did not exist, send me an eMail.

I could then log in, and the script would complete.

This does not work that way. When I log in.... the script does recognize the log in event.... but it continues to operate in the background.

Since it continues to operate in the background, the UI is not functional.

...so, the script fails. (It fails because I have a WinWaitActive timeout set).

If I stay logged in... the next time it runs... it runs perfectly.

So.... any ideas on how to take control of the running script when I log in?

Edited by ccbamatx

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this