![]() |
|
|
|
|
|||||||
| Windows & DOS: Issues & Discussions Questions involving Unix to Windows (Desktop or Server) go here. Any Windows/DOS questions should go here as well. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cronjob dies when user password expires | sparcguy | SUN Solaris | 4 | 02-04-2007 11:04 PM |
| script to change default route when primary gateway dies | slacker | Shell Programming and Scripting | 0 | 05-24-2006 09:34 AM |
| xdmcp dies in sco600 | khafner | SCO | 0 | 04-23-2006 04:02 PM |
| daemon dies, need to know why | Silver11 | SUN Solaris | 2 | 03-24-2006 02:26 PM |
| email notification if job is killed/dies | jacob_gs | Shell Programming and Scripting | 2 | 05-15-2002 11:29 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
How to detect if a Windows app dies??
Hello All: I hope this is the right category…
I have a application (this app runs under java and jboss) that runs under Windows, it’s started as a service. If that application should become disabled, crash or no longer function, what would be the best method for determining it is no longer running? If this was UNIX it would be a no-brainer I could simply watch for the pid or write a script to tickle the app. I don’t think I have that luxury on Windows (Sever 2003,2000, XP) Again Thanks all |
| Forum Sponsor | ||
|
|
|
||||
|
Quote:
|
|
||||
|
Quote:
Very difficult - probably. If you want to go down this way, you should look at the toolhelp32 api or use the psapi library. There are a couple of other ways as well. See Alex Fedotov's write up on the same. Last edited by vino; 12-06-2006 at 07:03 AM. |
|
|||
|
Thanks All: Our customer has asked for this request but it doesn't seem to be a "hot" topic for them. I'll go down that road if it becomes more of a issue. One thing I might be able to do,... Our application opens tcpip ports. I could poll that port ever 15 minutes if its gone then I might have a pretty good idea our app is toast. A netstat -a and search for our IP port "should" be pretty simple. I'll look into "net start" and see what that offers.
Hay... this is a GREAT site Keep up the good work !!!! |
|
|||
|
Quote:
|
| Thread Tools | |
| Display Modes | |
|
|
|
The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
|
| 421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop bash split boot: cannot open kernel/sparcv9/unix check if file exists command copy/move folder in unix curses.h cut command in unix find grep find mtime find null character in a unix file from ip can we get machine name +unix glance unix grep or grep recursive inaddr_any inappropriate ioctl for device known problems with fork unix c ksh if last login from unix lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace blank spaces by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix solaris change ip address stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix interview questions unix mtime unix.com vi substitute |