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
> 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?
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
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