I have a compiled script (*.exe) that works perfectly when I lauch it manually.
When I schedule it with WTS, I have indications that it does start, but hangs at some point. As this is running in "blind" mode, that is pretty difficult to troubleshoot.
I am at the point, where I suspect that some MSched commands may not work in that mode. Are there any special restrictions or timing issues to consider when scheduling an *.exe.
I am running Windows 2000. Our LAN is Novell. I scheduled the exe tu run with the W2K account "administrator". Everything it needs are local, and not dependant on the LAN. When I log in as "administrator" and launch it manually, that's fine.
Thanks for your help.
Gaston.
Scheduled *.EXE script hangs
Moderators: JRL, Dorian (MJT support)
Is the console logged in when the EXE is run? If not then it may fail to work if you have any window, key or mouse functions in your script. See the following FAQ entry:
http://www.mjtnet.com/index.htm?msfaq17.html
Add the /LOGFILE switch to the command line so that we can see a log file and determine where the hang occurs. e.g.:
mymacro.exe /LOGFILE=c:\mylogfile.log
http://www.mjtnet.com/index.htm?msfaq17.html
Add the /LOGFILE switch to the command line so that we can see a log file and determine where the hang occurs. e.g.:
mymacro.exe /LOGFILE=c:\mylogfile.log
MJT Net Support
[email protected]
[email protected]
Hi,
I read your document a couple of time, and I would like you to confirm my understanding:
My *.exe is making use of windows and key functions. Therefore, it won't run, even as a service, if the workstation is logged out.
When windows or key functions are used, we can use the WTS, but the workstation must remain logged in.
Thank you,
Gaston.
I read your document a couple of time, and I would like you to confirm my understanding:
My *.exe is making use of windows and key functions. Therefore, it won't run, even as a service, if the workstation is logged out.
When windows or key functions are used, we can use the WTS, but the workstation must remain logged in.
Thank you,
Gaston.
Hi,
I read your document a couple of time, and I would like you to confirm my understanding:
My *.exe is making use of windows and key functions. Therefore, it won't run, even as a service, if the workstation is logged out.
When windows or key functions are used, we can use the WTS, but the workstation must remain logged in.
Thank you,
Gaston.
I read your document a couple of time, and I would like you to confirm my understanding:
My *.exe is making use of windows and key functions. Therefore, it won't run, even as a service, if the workstation is logged out.
When windows or key functions are used, we can use the WTS, but the workstation must remain logged in.
Thank you,
Gaston.
Correct. Your .EXE will fail unless the console is logged in. This is because the windows that it is trying to interract with don't exist unless the console is present. WTS runs as a service and therefore can *start* your .EXE whether or not the console is present, but if it isn't your macro will fail to complete due to the fact that the windows it expects to find don't exist.
MJT Net Support
[email protected]
[email protected]
Let me be even more precise (see previous post):
I am logged to Windows as user "gaston". The script is scheduled to run from the account "administrator". In that scenario, someone is logged in to the workstation, but the script still fails.
I must be logged in as "administrator" in order for the script to run successfully.
Correct?
Gaston.
I am logged to Windows as user "gaston". The script is scheduled to run from the account "administrator". In that scenario, someone is logged in to the workstation, but the script still fails.
I must be logged in as "administrator" in order for the script to run successfully.
Correct?
Gaston.
Yes, a real user must be fully logged in for the console to exist. This is not the same as telling a service to run under a specific account. Sure, the security context will be right, but no console will exist.
If the machine is logged out or locked there is no console.
If the machine is logged out or locked there is no console.
MJT Net Support
[email protected]
[email protected]