Re: error on system command

2001-05-26 Thread Dan Brown
Peter Lemus wrote: > > Hi, I'm getting a syntax error on the following > command > > $PIDS=`ps -ef | grep $user | grep -v grep | cut -b > 10-14` > > Please help. I need to get the process id of $user > and assign it to PIDS, then kill it. This little script worked on my system to prind out th

Re: error on system command

2001-05-25 Thread Me
> Hi, I'm getting a syntax error on the following > command > > $PIDS=`ps -ef | grep $user | grep -v grep | cut -b > 10-14` You're missing the semi-colon (;) at the end?

RE: error on system command

2001-05-25 Thread Peter Cornelius
It might help to know what the error is saying and maybe some surrounding code but my first reaction is that $user has a \n in it that need to be chomped. Also, don't you want @PIDS? Peter C. > Hi, I'm getting a syntax error on the following > command > > $PIDS=`ps -ef | grep $user | grep -v g

error on system command

2001-05-25 Thread Peter Lemus
Hi, I'm getting a syntax error on the following command $PIDS=`ps -ef | grep $user | grep -v grep | cut -b 10-14` Please help. I need to get the process id of $user and assign it to PIDS, then kill it. thanks, = Peter Lemus UNIX/NT Networks Engineer [EMAIL PROTECTED] --This world is too