[ale] Need help from cammand line and scripting gurus

Chris Ricker kaboom at gatech.edu
Wed Feb 27 10:01:52 EST 2002


On Wed, 27 Feb 2002, Mazukna, Thomas wrote:

> Hi,
> 
> here is where I am stuck:
> os - SunOS xxxx 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-4
> the task - I need to make sure that one process is alive and running. The
> problem is that it is a java process and there are a lot of those running on
> the box, so the only way to tell is to look at the start class which is
> passed in as a param to java. ps display only 80 chars whic is not enough 
> "/bin/../java/bin/../jre/bin/../bin/sparc/native_threads/java
> -Dbeanfactory.cfg="
> how do I do it? This will be launched from a script periodicly to check and
> restart the process. Only standart tools can be used... since I have no way
> of getting anything installed on those production servers :(

Use the Berkeley ps (or the Gnu ps, if you've installed it) and you won't 
have the 80-char limit:

/usr/ucb/ps -auwwx

later,
chris


---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list