Hi Eric
Tasks are:
HTTP mainly (but also execution of VB-Scripts)
- I use on Error "Stop Job"
- I use Timeout only on the Job (in that particular case)
Code is in the spoiler below:
- <JobClass>
- <Triggers>
- <TriggerClass>
<ExpireActionType>Delete</ExpireActionType>
<ExpireType>DateTime</ExpireType>
<TriggerType>TimeType</TriggerType>
- <TTime>
<TimeTriggerType>Interval</TimeTriggerType>
<IntervalType>Daily</IntervalType>
<SpecificType>Days</SpecificType>
<FirstLastType>First</FirstLastType>
<IntervalValue>1</IntervalValue>
<FirstLastWeekDay>Monday</FirstLastWeekDay>
<InitDate>2011-07-05T00:40:00+02:00</InitDate>
- <IntervalDays>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</IntervalDays>
- <IntervalWeekDays>
<boolean>true</boolean>
<boolean>true</boolean>
<boolean>true</boolean>
<boolean>true</boolean>
<boolean>true</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</IntervalWeekDays>
<AllYears>true</AllYears>
<YearIsBetween>false</YearIsBetween>
<AllMonths>false</AllMonths>
<YearBetweenStart>0</YearBetweenStart>
<YearBetweenStop>0</YearBetweenStop>
- <Years>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</Years>
<MonthsIsBetween>false</MonthsIsBetween>
<MonthBetweenStart>0</MonthBetweenStart>
<MonthBetweenStop>0</MonthBetweenStop>
- <Months>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>true</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</Months>
<AllDays>false</AllDays>
<DayType>true</DayType>
<DaysIsBetween>false</DaysIsBetween>
<DayBetweenStart>0</DayBetweenStart>
<DayBetweenStop>0</DayBetweenStop>
- <Days>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>true</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</Days>
<AllHours>false</AllHours>
<HoursIsBetween>false</HoursIsBetween>
<HourBetweenStart>0</HourBetweenStart>
<HourBetweenStop>0</HourBetweenStop>
- <Hours>
<boolean>true</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</Hours>
<AllMinutes>false</AllMinutes>
<MinutesIsBetween>false</MinutesIsBetween>
<MinuteBetweenStart>0</MinuteBetweenStart>
<MinuteBetweenStop>0</MinuteBetweenStop>
- <Minutes>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>true</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</Minutes>
<AllSeconds>false</AllSeconds>
- <Seconds>
<boolean>true</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
</Seconds>
<SecondsIsBetween>false</SecondsIsBetween>
<SecondBetweenStart>0</SecondBetweenStart>
<SecondBetweenStop>0</SecondBetweenStop>
<DateNextExecution>2011-06-07T00:40:00</DateNextExecution>
</TTime>
<Id>b6259c42-9003-4a3d-b396-b9d82527ade4</Id>
<JobId>918470eb-937b-45d9-abbd-c232bf53b533</JobId>
<Description>Täglich</Description>
<Active>true</Active>
<FirstRun>2011-06-07T00:40:00</FirstRun>
<ExpirationEnabled>false</ExpirationEnabled>
<ExpirationDate>2011-06-07T13:13:57</ExpirationDate>
<TimesUntilExpire>1</TimesUntilExpire>
<UseTimeOut>false</UseTimeOut>
<TimeOutHours>0</TimeOutHours>
<TimeOutMinutes>0</TimeOutMinutes>
<TimeOutSeconds>0</TimeOutSeconds>
<TimeOutTime>9999-12-31T23:59:59.9999999</TimeOutTime>
<IgnoreServerOff>false</IgnoreServerOff>
<IsUTCOffsetSet>true</IsUTCOffsetSet>
<UTCOffsetTicks>72000000000</UTCOffsetTicks>
</TriggerClass>
</Triggers>
- <Tasks>
- <TaskClass>
<StartNotifications />
<CompleteNotifications />
<ErrorNotifications />
<Conditions />
- <TimeOut>
<Use>false</Use>
<Hours>0</Hours>
<Minutes>0</Minutes>
<Seconds>0</Seconds>
<ConsiderError>false</ConsiderError>
</TimeOut>
- <Stats>
<Status>Waiting</Status>
<JobId>918470eb-937b-45d9-abbd-c232bf53b533</JobId>
<TaskId>c6024037-63c5-401d-a10f-94df1456d8f2</TaskId>
<Active>true</Active>
<StandardOutput>PGh0bWw+DQo8aGVhZD4NCgk8dGl0bGU+QmlsZGFyY2hpdjwvdGl0bGU+DQoJPGxpbmsgcmVsPSJzdHlsZXNoZWV0IiB0eXBlPSJ0ZXh0L2NzcyIgaHJlZj0iL3N0eWxlLmNzcyI+DQo8L2hlYWQ+DQo8Ym9keSBiZ2NvbG9yPSIjRkZGRkZGIj4NCg0KDQo8c3Ryb25nPkJpbGRhcmNoaXYtQmVzdGVsbHVuZ2VuPC9zdHJvbmc+PGJyPg0KTmV1ZSBCZXN0ZWxsdW5nZW4gdm9tIFNRTC1TZXJ2ZXIgYXVmIGRlbiBJbnRyYW5ldHNlcnZlciBrb3BpZXJlbjxicj4NCnVuZCBm77+9ciBkZW4gVmVyc2FuZCB2b3JiZXJlaXRlbi48YnI+DQo8YnI+DQoNClRfQmlsZGFyY2hpdkJlc3RlbGx1bmc6IEVzIHd1cmRlbiAwIERhdGVuc++/vXR6ZSDvv71iZXJ0cmFnZW4uPGJyPlRfQmlsZGFyY2hpdkJlc3RlbGx1bmdEZXRhaWw6IEVzIHd1cmRlbiAwIERhdGVuc++/vXR6ZSDvv71iZXJ0cmFnZW4uPGJyPjxicj5FcyBzaW5kIGtlaW5lIG5ldWVuIEJlc3RlbGx1bmdlbiB2b3JoYW5kZW4uPGJyPjxicj48YnI+DQoNCjxicj4NCjxicj4NCg0KPC9ib2R5Pg0KPC9odG1sPg0KDQo=</StandardOutput>
<StandardError />
<ExitCode>0</ExitCode>
<ExecutionTime>79.696</ExecutionTime>
<NoExecutes>26</NoExecutes>
<Result>Success</Result>
<DateLastExited>2011-07-04T01:07:54.8359825+02:00</DateLastExited>
<DateLastExecution>2011-07-04T01:06:26.0217773+02:00</DateLastExecution>
</Stats>
- <OnError>
<CausesError>All</CausesError>
<ErrorList />
<ErrorAction>StopJob</ErrorAction>
<RetryTimes>0</RetryTimes>
<RunFollowingTasks>true</RunFollowingTasks>
<Minutes>0</Minutes>
<Seconds>0</Seconds>
</OnError>
<TaskType>HTTP</TaskType>
<Id>c6024037-63c5-401d-a10f-94df1456d8f2</Id>
<JobId>918470eb-937b-45d9-abbd-c232bf53b533</JobId>
<Order>1</Order>
<Name>Download Bildbestellungen</Name>
<StoreSTDOut>true</StoreSTDOut>
<StoreSTDErr>true</StoreSTDErr>
- <ExecutionContext>
<ExecutionType>Background</ExecutionType>
<ForegroundExecuteType>Any</ForegroundExecuteType>
<UserName>ham-rdp</UserName>
<SessionID>2</SessionID>
<AnySessionID>true</AnySessionID>
<BeforeExecutionLogon>false</BeforeExecutionLogon>
<BeforeExecutionLogonCredential />
<AfterUnlockLock>false</AfterUnlockLock>
<AfterExecutionAction>DoNothing</AfterExecutionAction>
</ExecutionContext>
<CodePage>28592</CodePage>
- <HTTP>
<ExistAction>Overwrite</ExistAction>
<Method>POST</Method>
<URL>http://intra.rega.local/Tools/Bildarchiv_Website/download_bestellungen/download_bestellungen.asp</URL>
<HTTPParameterType>StringParameter</HTTPParameterType>
<Parameters />
<TimeOut>600</TimeOut>
<NetworkCredential>90ca3c45-3937-446d-8149-b50afad0dfa9</NetworkCredential>
<UserAgent>VisualCron</UserAgent>
<AllowAutoRedirect>true</AllowAutoRedirect>
<KeepAlive>true</KeepAlive>
<HTTPVersion>11</HTTPVersion>
- <Proxy>
<ProxyType>NoProxy</ProxyType>
<ProxyServerType>UserSite</ProxyServerType>
<UseCredentials>true</UseCredentials>
<Port>0</Port>
<UseProxyForDataChannel>true</UseProxyForDataChannel>
</Proxy>
<SaveContent>false</SaveContent>
<FileCredential />
<FileAutoName>true</FileAutoName>
</HTTP>
</TaskClass>
- <TaskClass>
<StartNotifications />
<CompleteNotifications />
<ErrorNotifications />
<Conditions />
- <TimeOut>
<Use>false</Use>
<Hours>0</Hours>
<Minutes>0</Minutes>
<Seconds>0</Seconds>
<ConsiderError>false</ConsiderError>
</TimeOut>
- <Stats>
<Status>Waiting</Status>
<JobId>918470eb-937b-45d9-abbd-c232bf53b533</JobId>
<TaskId>93728023-583b-42ba-9317-56b7d005930a</TaskId>
<Active>true</Active>
<StandardOutput />
<StandardError />
<ExitCode>0</ExitCode>
<ExecutionTime>84.224</ExecutionTime>
<NoExecutes>26</NoExecutes>
<Result>Success</Result>
<DateLastExited>2011-07-04T01:10:11.1198491+02:00</DateLastExited>
<DateLastExecution>2011-07-04T01:08:49.5245325+02:00</DateLastExecution>
</Stats>
- <OnError>
<CausesError>All</CausesError>
<ErrorList />
<ErrorAction>StopJob</ErrorAction>
<RetryTimes>0</RetryTimes>
<RunFollowingTasks>true</RunFollowingTasks>
<Minutes>0</Minutes>
<Seconds>0</Seconds>
</OnError>
<TaskType>Execute</TaskType>
<Id>93728023-583b-42ba-9317-56b7d005930a</Id>
<JobId>918470eb-937b-45d9-abbd-c232bf53b533</JobId>
<Order>2</Order>
<Name>Log check 104</Name>
<StoreSTDOut>true</StoreSTDOut>
<StoreSTDErr>true</StoreSTDErr>
- <ExecutionContext>
<ExecutionType>Background</ExecutionType>
<ForegroundExecuteType>Any</ForegroundExecuteType>
<UserName>ham-rdp</UserName>
<SessionID>2</SessionID>
<AnySessionID>true</AnySessionID>
<BeforeExecutionLogon>false</BeforeExecutionLogon>
<BeforeExecutionLogonCredential />
<AfterUnlockLock>false</AfterUnlockLock>
<AfterExecutionAction>DoNothing</AfterExecutionAction>
</ExecutionContext>
<CodePage>65001</CodePage>
- <Execute>
<UseCredentials>true</UseCredentials>
<NetworkCredential>90ca3c45-3937-446d-8149-b50afad0dfa9</NetworkCredential>
<UseWorkingDirectory>true</UseWorkingDirectory>
<WorkingDirectory>D:\Auto_Jobs</WorkingDirectory>
<Priority>Normal</Priority>
<CheckIfRunning>false</CheckIfRunning>
<ProcessName />
<CmdLine>C:\Windows\system32\wscript.exe</CmdLine>
<UseShellExecute>false</UseShellExecute>
<Arguments>D:\Auto_Jobs\Task_check.vbs "\\sv-rc-007.rega.local\d$\Auto_Jobs\websites\Bildarchiv_Bestellungen_Download.log" "VB_Script" 24 "h"</Arguments>
<LogonType>WithProfile</LogonType>
<RunAsType>API</RunAsType>
<RunHidden>true</RunHidden>
</Execute>
</TaskClass>
</Tasks>
<StartNotifications />
<CompleteNotifications />
- <ErrorNotifications>
<string>99d6f142-b412-4e87-a16c-7dc155ea95b8</string>
</ErrorNotifications>
<TimeExceptions />
<Conditions />
- <TimeOut>
<Use>true</Use>
<Hours>0</Hours>
<Minutes>5</Minutes>
<Seconds>0</Seconds>
<ConsiderError>true</ConsiderError>
</TimeOut>
- <Stats>
<JobId>918470eb-937b-45d9-abbd-c232bf53b533</JobId>
<Active>true</Active>
<ExitCode>0</ExitCode>
<DateLastExecution>2011-07-04T01:06:10.6621074+02:00</DateLastExecution>
<DateNextExecution>2011-07-05T00:40:00+02:00</DateNextExecution>
<DateLastExited>2011-07-04T01:10:34.4327967+02:00</DateLastExited>
<DateCreated>2011-06-09T16:25:47.6011095+02:00</DateCreated>
<DateModified>2011-06-15T15:44:16.8525283+02:00</DateModified>
<NoExecutes>19</NoExecutes>
<ExecutionTime>274.666</ExecutionTime>
<LastTriggerId>b6259c42-9003-4a3d-b396-b9d82527ade4</LastTriggerId>
<Status>Waiting</Status>
</Stats>
<Id>918470eb-937b-45d9-abbd-c232bf53b533</Id>
<Test>false</Test>
<UseRunRandomValue>false</UseRunRandomValue>
<RunRandomValue>0</RunRandomValue>
<Missed>false</Missed>
<MissedDate>0001-01-01T00:00:00</MissedDate>
<Name>0104 Bestellungen Bildarchiv</Name>
<Description>...</Description>
<Group>0100 Webserver [ham]</Group>
<RunMissed>true</RunMissed>
<RunOnce>false</RunOnce>
<RemoveAfterExecution>false</RemoveAfterExecution>
<RunTasksInOrder>true</RunTasksInOrder>
<NotStartIfRunning>true</NotStartIfRunning>
<QueueJobs>false</QueueJobs>
<CreatedBy>aa99c657-7767-41f5-a9d7-942e8df985f3</CreatedBy>
<ModifiedBy>b9030a91-6e3b-4926-90bd-adfef209720a</ModifiedBy>
<UniqueRunId>0</UniqueRunId>
</JobClass>
Edited by moderator
2011-07-05T17:24:29Z
|
Reason: made the post a bit more readable