V
vincente13
Hi all
Im using
system("ps -fu $USER | grep $INSTANCE | grep -v grep | awk {print $2} "
)
$USER and $INSTANCE are variables from my perl program
However $2 is suppose to be from the pipe output.
Somehow Perl is interpreting $2 to be some variables from the program
itself
So how can differentiate the program variables and system variables?
Appreciate any help
Im using
system("ps -fu $USER | grep $INSTANCE | grep -v grep | awk {print $2} "
)
$USER and $INSTANCE are variables from my perl program
However $2 is suppose to be from the pipe output.
Somehow Perl is interpreting $2 to be some variables from the program
itself
So how can differentiate the program variables and system variables?
Appreciate any help