[ale] Need help from cammand line and scripting gurus
Mazukna, Thomas
Thomas.Mazukna at delta.com
Wed Feb 27 09:57:03 EST 2002
ps -eafw --width=9999
ps: illegal option -- w
ps: illegal option -- -
ps: illegal option -- w
ps: illegal option -- i
usage: ps [ -aAdeflcjLPy ] [ -o format ] [ -t termlist ]
[ -u userlist ] [ -U userlist ] [ -G grouplist ]
[ -p proclist ] [ -g pgrplist ] [ -s sidlist ]
'format' is one or more of:
user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid
pri opri pcpu pmem vsz rss osz nice class time etime stime
f s c lwp nlwp psr tty addr wchan fname comm args projid project
I guess ps in sunos 5.8 has no such feature --width :(
Tomas
-----Original Message-----
From: Jason Lynn [mailto:jason_lynn_ at hotmail.com]
To: ale at ale.org
Sent: Wednesday, February 27, 2002 9:44 AM
To: Mazukna, Thomas; ale at ale.org
Subject: Re: [ale] Need help from cammand line and scripting gurus
Hmm... sorry that won't help... this worked for me ->
ps -eafw --width=9999 >> /tmp/tmpfile
>
>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 :(
>
>thanks,
>Tomas
>
>---
>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.
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
---
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