|
| |||||||||
| Tags: exit, scheduled |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Scheduled Task Exit Code
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 |
|
#2
| |||
| |||
| Re: Scheduled Task Exit Code
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 > |
|
#3
| |||
| |||
| Re: Scheduled Task Exit Code
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 > > > > > |
|
#4
| |||
| |||
| Re: Scheduled Task Exit Code
What exactly do you have in the file WCFOR2008_SUBM_CALC.BAT? That's where the exit code comes from! "Rich Young" <RichYoung@discussions.microsoft.com> wrote in message news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com... >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 >> > >> >> >> |
|
#5
| |||
| |||
| Re: Scheduled Task Exit Code
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@discussions.microsoft.com> wrote in message > news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com... > >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 > >> > > >> > >> > >> > > > |
|
#6
| |||
| |||
| Re: Scheduled Task Exit Code
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@discussions.microsoft.com> wrote in message news:0A7D6DFE-1F70-4BE5-B735-3A8928C2C55E@microsoft.com... >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@discussions.microsoft.com> wrote in message >> news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com... >> >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 >> >> > >> >> >> >> >> >> >> >> >> |
|
#7
| |||
| |||
| Re: Scheduled Task Exit Code
I'll give that a shot and will report back. Thanks! "Pegasus (MVP)" wrote: > 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@discussions.microsoft.com> wrote in message > news:0A7D6DFE-1F70-4BE5-B735-3A8928C2C55E@microsoft.com... > >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@discussions.microsoft.com> wrote in message > >> news:75AE207F-724A-42C5-B691-61E2E7787B71@microsoft.com... > >> >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 > >> >> > > >> >> > >> >> > >> >> > >> > >> > >> > > > |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Scheduled Task Exit Code" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The task completed with an exit code of (1) | Ikram | Active Directory | 3 | 03-09-2009 06:45 AM |
| Scheduled Task - NTBackup Completion Code 0x20000003 | DWiebesick | Windows Server Help | 2 | 10-12-2007 11:15 PM |
| Task Scheduler Exit Code | GMC | Windows Server Help | 4 | 21-04-2007 08:51 AM |
| Scheduled Task error code:The task completed with an exit code of | Teo Chee Yang | Windows Server Help | 7 | 26-02-2007 06:01 PM |
| Scheduled task giving exit code 10d1 | Guillermo | Window 2000 Help | 6 | 22-11-2005 03:24 AM |