Check the 'last result' of the 'Schedule Tasks'

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
uczernik
Posts: 2
Joined: Fri Apr 02, 2004 5:55 am
Location: Germany

Check the 'last result' of the 'Schedule Tasks'

Post by uczernik »

Is there a way to check the 'last result' of the 'Schedule Tasks' from a host?
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

'last result' of the 'Schedule Tasks'? Do you mean you want to check some application that was started by standard Windows scheduler?
I think it is application specific matter. What application you need to check?

Regards
Alex
uczernik
Posts: 2
Joined: Fri Apr 02, 2004 5:55 am
Location: Germany

Post by uczernik »

Ok, my question was not complete.

I have some schedule tasks which were started hourly by the standard Windows scheduler.
At running of the appications and batches the 'status' 0x01. When finished the result is depending on the application,
so you are right, Alex!
At the most applications or batches the result 0x00 the running was OK and unequal null when the application fails.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I know about result codes but I don't think Windows stores anywhere exit codes. At least I didn't find any information about this option. Only parent process (scheduler in this case) can check exit code.
Some applications can log results, otherwise you need to create your own script that will start application and save exit code into a file. And start this script from the scheduler.

Regards
Alex
Post Reply