A hanging shceduled task in W2K SP3

  • Thread starter Thread starter Henry
  • Start date Start date
H

Henry

I have a CognosScript macro file (with the .mcx extension
and is run by the CognosScript macro runner) that runs in
a command prompt but hangs as a scheduled task. Nothing
can be found in the scheduled tasks log file. The
scheduled task is run using a local administartor
account. I also checked the environment variables and
they all look good.

Any thoughts?

Henry
 
Add some basic diagnostics to your script:

@echo off
echo %date% %time% Start of job > c:\test.log
echo User=%UserName%, Path=%path% >> c:\test.log
c:\tools\SomeScript.mcx >> c:\test.log >c:\test.err
echo %date% %time% End of job >> c:\test.log

Now schedule this batch file, then examine the logs and
you're likely to see what's wrong.
 
Back
Top