Subject: | |
From: | |
Reply To: | |
Date: | Wed, 29 Dec 1999 11:23:44 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi
If you extend that concept you could have a
generalised job monitoring system:
1) Have a system logon UDC that for batch jobs,
creates a file with the same name as the job ie J#####
2) The last step of the job deletes the file.
3) Have another job that wakes up every so often and
does a health check. It compares the list of J#####
files with the jobs still running. Files without
executing jobs represent jobs that aborted. The
monitoring job can then be as fancy as you like - send
emails, etc.
Regards
John Edwards
--- Larry Barnes <[log in to unmask]> wrote:
> Noam,
>
> I've used the simple technique of building a dummy
> file at the beginning of a
> job. If the job finnishes successfully the file is
> then purged. The next job
> looks for this file, at the beginning, if found the
> job either runs in a loop or
> terminates.
> Hope this helps?
>
> Larry B.
>
> Noam Koren wrote:
>
> > Hello all.
> >
> > I would like to know if there is a way to be
> informed when a Job starts or
> > ends NOT to the console but to another application
> (i.e. a way to ask the OS
> > to invoke something when the job starts or ends).
> >
> > I currently use a command that I insert into the
> Job itselt at the beggining
> > and the end of the job file.
> > But - I have a problem when something in the job
> goes wrong and the Job is
> > Flushed - the last command is not invoked so that
> I dont get a notice.
> >
> > Example:
> > !job jjj,us.ac
> > !jobmsg.bin.acc <-- send
> message through tcp/ip
> > !
> > ! other commands
> >
> > oops - ERROR - Job flushed
> > !
> > ! other commands
> > !
> > !jobmsg.bin.acc <-- send
> message through tcp/ip actualy
> > !EOJ not
> invoked
> >
> > Is there a solution for this?
> > TIA for any idea.
> >
> > Noam
>
>
> > begin: vcard
> fn: Larry Barnes
> n: Barnes;Larry
> org: Mitek Corporation
> adr: 4545 E. Baseline Rd.;;;Phoenix;AZ.
> ;85040;USA
> email;internet: [log in to unmask]
> title: Director of MIS
> tel;work: 602-438-4545 ext. 1366
> x-mozilla-cpt: ;0
> x-mozilla-html: FALSE
> version: 2.1
> end: vcard
>
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://messenger.yahoo.com
|
|
|