help-cfengine
[Top][All Lists]
Advanced

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

Re: 2.1.17 having issue with ExecResult() using pipelines


From: Mark Burgess
Subject: Re: 2.1.17 having issue with ExecResult() using pipelines
Date: Sat, 12 Nov 2005 07:42:46 +0100

On Fri, 2005-11-11 at 15:26 -0600, Paul Krizak wrote:
> So ExecResult throws out shell metacharacters?  I'm confused as to what 
> is the expected "correct" behavior so I don't get burned next time I 
> need to upgrade.  For example, we've got commands like this:

No. It doesn't throw out anyhing. It simply doesn't understand them
because there is no shell. 

In Unix you can execute a process in two ways: directly by asking the
kernel to start a process based on a certain program, or indirctly by
asking it to start a /bin/ssh image and execute the task as a subprogram
of that.  The latter has several advantages (ability to use the shell to
parse arguments and use pipes etc) and disadvantages (security issues,
hidden assumptions).

M





reply via email to

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