[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How exec works

From: John Thornton
Subject: RE: How exec works
Date: Mon, 18 Dec 2000 13:42:35 -0800


I see two things.
1) your shell command should have the absolute path name. /bin/echo $(list) 
2) your shell command should be encapsulated in "quotes"


-----Original Message-----
From: Olivier Hertrich
To: address@hidden
Sent: 12/18/00 12:43 PM
Subject: How exec works

I want create a liste with :

        list = ( "exec /bin/awk -F: '{if ($4 > 100) {print _ $6}}'
/etc/passwd"  )

   If I try to see the list in a shellcommand like :

            echo $(list)

I see the string  exec /bin/awk -F: '{if ($4 > 100) {print _ $6}}'
/etc/passwd and not the result of the command.
Where I'm wrong?

Thank You.

Olivier Hertrich

Help-cfengine mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]