G
Gilbert Ostlethwaite
Hi
I have a third party java application that talks to a back end ERP
system through a C program (also third party & no source) that runs in
a Windows command window (it won't run as a Windows service). This
gateway is prone to falling over and the third party java app provides
a number of methods to interrogate the status of the C-program. At the
moment I have my own "heartbeat" program that calls these methods every
minute or so and fires off e-mails if it finds a problem.
Recently, the C-program has taken to falling over in the small wee
hours & I'm fed up with being woken up at dark o'clock several times a
week.
Is there a Java library available that will manipulate the windows
environment in such a way as to allow me to
a) Find the command window that the C-program is running in.
b) Close the program and command window (in effect issue Ctrl-C to the
window)
c) Open a new command window
d) Send the neccassary command string to the window that will restart
the program.
Regards
Roger
I have a third party java application that talks to a back end ERP
system through a C program (also third party & no source) that runs in
a Windows command window (it won't run as a Windows service). This
gateway is prone to falling over and the third party java app provides
a number of methods to interrogate the status of the C-program. At the
moment I have my own "heartbeat" program that calls these methods every
minute or so and fires off e-mails if it finds a problem.
Recently, the C-program has taken to falling over in the small wee
hours & I'm fed up with being woken up at dark o'clock several times a
week.
Is there a Java library available that will manipulate the windows
environment in such a way as to allow me to
a) Find the command window that the C-program is running in.
b) Close the program and command window (in effect issue Ctrl-C to the
window)
c) Open a new command window
d) Send the neccassary command string to the window that will restart
the program.
Regards
Roger