[thelist] shell script issues

puru singh puru_singh2004 at yahoo.co.in
Sun Jan 16 07:15:35 CST 2005


Hi 
Do not mail me again please .
ok
bye
Dan McCullough <dan.mccullough at gmail.com> wrote:I keep getting a "expr: syntax error" on this one shell script I am writting.
basically here is the section that is giving me the problem.

code:
PID=`ps -aef | grep Xms128m | grep -v grep | gawk '{print $2}'`
PID=`expr $PID + 1 - 1`
output: 
expr 20265 20292 20314 20342 + 1 - 1

I need some help in fixing this so it works. anyone have a suggestion or two?
-- 

* * Please support the community that supports you. * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 


Yahoo! India Matrimony: Find your life partneronline.


More information about the thelist mailing list