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 grep | cut -b
> 10-14`

Reply via email to