help-cfengine
[Top][All Lists]
Advanced

[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

Oliver,

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"

~J 

-----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 :

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

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

        any::
            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
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cfengine



reply via email to

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