-
Monitoring program
Hi all,
I have written one java program which downloads one xml from server and stores that in my local disk.
This java program is being run through a cron in Linux every one minute.
I want to monitor in linux that if somehow the java program takes more than one minute then the next cron entry should not start.
Can this be done through JAVA??
Is their any monitoring classes or something.??
Or it can be done in LINUX??
Please help
Thanks in Advance
-
Re: Monitoring program
You could just rewrite the program slightly so instead of running it as a cron job you just have it running ALL the time and then in the program you set up a timer to download the xml every 1 minute and then you can do the check your self if a download is already in progress.
// Json
-
Re: Monitoring program
Hi Json,
I done that also through Quartz API but my client does not want this..
He wants that i should run it from cron only...