Menu

#81 unable to check for long command lines

open
nobody
check_procs (5)
5
2001-06-18
2001-06-18
Anonymous
No

Hi All

Linux 2.4.2-2, procps version 2.0.7

We run various java processes on a machine which
I would like to check are running with check_procs.

The problem is their long command-lines. I can't
simply check for a 'java' process, since that
wouldn't uniquely identify the process I want to
check (a developer could be running some other
java process on the box).

I thus need to check for that given process name
along with it's supplied arguments. The default
PS_COMMAND detected for linux doesn't contain
any 'w's, allowing it to check the complete command
line. If I supply too long a -a option, it just never
finds any processes at all, making me think that I
am mis-understanding the help for the program.

Adding a whole bunch of 'w's to PS_COMMAND's
options sorts this out. Of course, it won't on
Solaris. I suggest that a warning be printed on
OS's that won't support checking of long command-line
options to limit the -a to something short (80 chars
or so).

Thanks for your time people, and an excellent
excellent program.

Oskar

Discussion


Log in to post a comment.