Trying to find lsof version information
Hi ALL,
I am running a script on several hundred boxes and trying to fing the version of lsof they have.
I have created a scipr for that which runs "lsof -v" through ssh on those boxes.
I am taking output as: line=`lsof -v | sed '/^$/d' | grep "revision"`
echo $line.
But $line is not storing anything?? i dont know why, i think the control is not passing to script , after lsof is run.
How can i do that.
Appreciate your help in this regard.
|