conradin
August 20th, 2012, 11:00 PM
Hi all,
I am working on a Ubuntu port of some scientific equipment scripts aimed at RHEL. There seems to be some different command line functions that I'm not exactly familiar with, such as $eval
how can I find out more about the eval command?
My usual source:
http://linux.die.net/man/1/eval
seems useless in this case.
the specific is a variable assignment. where findproc is a previous line
Actualy, while I am at it, Im not exactly sure what grep $1 is either.
...
findproc="ps -e | grep $1 | awk '{ printf(\"%d \",\$1) }'"
npids=`eval $findproc`
as
usual any insight would be greatly appreciated.
I am working on a Ubuntu port of some scientific equipment scripts aimed at RHEL. There seems to be some different command line functions that I'm not exactly familiar with, such as $eval
how can I find out more about the eval command?
My usual source:
http://linux.die.net/man/1/eval
seems useless in this case.
the specific is a variable assignment. where findproc is a previous line
Actualy, while I am at it, Im not exactly sure what grep $1 is either.
...
findproc="ps -e | grep $1 | awk '{ printf(\"%d \",\$1) }'"
npids=`eval $findproc`
as
usual any insight would be greatly appreciated.