Thursday, January 19, 2006

SIM / SPRI Bad Syntax Perhaps Bogus Bug

by damonp on January 19, 2006

in SysAdmin

Newer versions of the system ps command can give the following error while running SIM or SPRI.

Warning: bad syntax, perhaps a bogus ‘-’? See /usr/share/doc/procps-3.2.3/FAQ

To fix make the following changes.

SIM:
Change /usr/local/sim/sim:

ps -auxww | grep -v $IGNORE >> $PS_CACHE

To:

ps auxww | grep -v $IGNORE >> $PS_CACHE

Removed the ‘-’ in front of auxww. This occurs on or about line #143 in SIM 2.5-3.

SPRI:
Change /usr/local/spri/spri:

ps -auxww > $TF

To:

ps auxww > $TF

Removed the ‘-’ in front of auxww. This occurs on or about line #56 in SPRI 0.5.

Popularity: 1%

{ 0 comments }