Re: Scheduled Task Exit Code

Tech-Archive recommends: Speed Up your PC by fixing your registry



Fine. Now add an extra line and modify this line like so:

echo %date% %time% User=%UserName% >>c:\test.log
"D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER ryoung
/PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
WCFORLC2008 /NI 1>>c:\test.log 2>>&1

Run the task again under the Task Scheduler, then examin
c:\test.log. It will probably tell you what's wrong.


"Rich Young" <RichYoung@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:0A7D6DFE-1F70-4BE5-B735-3A8928C2C55E@xxxxxxxxxxxxxxxx
I run some code that executes some commands out of an application call
Cognos
Finance. Here is the contents of the batch file:

"D:\Software\Client\Cognos 7.3\Cognos\ws\cer4\bin\lexwcmd.exe" /USER
ryoung
/PSWD ****** /SYSTEM FOS /MODULE CALCSUB /SUBMISSION WCFOR2008 /SUBMISSION
WCFORLC2008 /NI


That's it. Not much in there.

Thanks again for your help!

Rich


"Pegasus (MVP)" wrote:

What exactly do you have in the file
WCFOR2008_SUBM_CALC.BAT?
That's where the exit code comes from!


"Rich Young" <RichYoung@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:75AE207F-724A-42C5-B691-61E2E7787B71@xxxxxxxxxxxxxxxx
I figure this might be more info than you want but here it is:

Name WCFOR2008_SUBM_CALC
Schedule At 11:30 PM every day, starting 1/3/2008
Next Run Time 1/4/2008 11:30:00 PM
Last Run Time 1/3/2008 11:30:00 PM
Status [Blank]
Last Result 0x801
Created ryoung

Task Tab
Run C:\Documents and Settings\ryoung\Desktop\WCFOR2008_SUBM_CALC.BAT
Start in C:\Documents and Settings\ryoung\Desktop
Run as FOS\ryoung
Run only if logged on - Not checked
Enable (scheduled task runs at specified time) - Is checked

Schedule Tab
Schedule Task Daily
Start time 11:30 PM
Schedule Task Daily Every 1 Day

Settings Tab
Delete the task if it not scheduled to run again - Not checked
Stop the task if it runs for 72 hours 0 minutes - Is checked
Idle time - Everything in this the area is not checked
Power Management - Everything in this the area is not checked

Security Tab
Groups or users Administrators - I belong to this group
SYSTEM
Permissions for Administrators
Full Control Allow
Modify Allow
Read & Execute Allow
Read & Execute Allow
Write Allow
Special Permissions Greyed Out


"Meinolf Weber" wrote:

Hello Rich,

Exit codes can also depend on the job you are running. So can you post
the
task itself?

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and
confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.dts-l.org/goodpost.htm

I have created a scheduked task that runs a batch file once a day.
When I run the batch manually, it works perfectly. However, when I
run it through the task scheduler, I can not tell if it runs
properly.
Here is the entry in the Task Scheduler log:

"WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
Started 1/3/2008 11:30:00 PM
"WCFOR2008_SUBM_CALC_5.job" (WCFOR2008_SUBM_CALC.BAT)
Finished 1/3/2008 11:30:00 PM
Result: The task completed with an exit code of (801).
I have searched both the internet and this forum but can not find
anything that describes exit code 801. What I need to know is what
that code means and how to correct it. Any insight anyone can
provide
would be greatly appreciated.

Thanks! Rich









.



Relevant Pages

  • Re: Scheduled Task Exit Code
    ... Schedule At 11:30 PM every day, ... Schedule Tab ... "Meinolf Weber" wrote: ... The task completed with an exit code of. ...
    (microsoft.public.windows.server.general)
  • Re: Task Scheduler 0x80 errors
    ... Much better to run the first few lines of the batch ... echo %date% %time% Start of batch job>> c:\test.txt ... The task completed with an exit code of. ... Task Scheduler return codes are generated by the command you schedule, ...
    (microsoft.public.win2000.general)
  • Re: Task Scheduler 0x80 errors
    ... Much better to run the first few lines of the batch ... echo %date% %time% Start of batch job>> c:\test.txt ... The task completed with an exit code of. ... Task Scheduler return codes are generated by the command you schedule, ...
    (microsoft.public.win2000.general)
  • Re: Scheduled Task Exit Code
    ... Here is the contents of the batch file: ... Schedule At 11:30 PM every day, ... Read & Execute Allow ... The task completed with an exit code of. ...
    (microsoft.public.windows.server.general)
  • Re: Scheduled Task Exit Code
    ... "Pegasus (MVP)" wrote: ... Schedule At 11:30 PM every day, ... The task completed with an exit code of. ...
    (microsoft.public.windows.server.general)