[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ExecResult not working as expected
From: |
Yves |
Subject: |
Re: ExecResult not working as expected |
Date: |
Fri, 26 Mar 2004 18:54:32 +0100 |
On Fri, 26 Mar 2004 12:33:13 -0500, Kurt Lieber wrote:
> cpu_info = ( ExecResult("/bin/cat /proc/cpuinfo | /bin/grep model\
> name | /bin/cut -d : -f 2 | /bin/uniq -c | /bin/sed 's/\([0-
> 9]\{1\}\)[[:space:]]\+\(.*\)/\1 x \2/'") )
Hello Kurt,
I think, there is a problem with "|" (pipe) symbol. Try this for example:
value = ( ExecResult( /bin/ksh -c "comand | comand ..." )
Regards,
Yves