Hey,

Ok, I changed the shebang example so that it looks like this:

I do not understand this comment:
This full path is required for the shebang to work so the above statement about using just cf-agent instead of the full path does not apply.

What statement mentions using cf-agent instead of the full path?

deb

Deb Taylor
Senior Technical Writer
CFEngine, Inc.







On Aug 29, 2013, at 3:46 PM, Nick Anderson <notifications@github.com> wrote:

> In examples/tutorials/hello_world.markdown:
> 
> > +cf-agent --no-lock --file ./hello_world.cf
> > +```
> > +
> > +The output is shown below:
> > +
> > +```
> > +# cf-agent --no-lock --file ./hello_world.cf
> > +2013-08-20T14:25:36-0500   notice: R: Hello World! I am thinkpad-w520 and it is Tue Aug 20 14:25:25 2013
> > +```
> > +
> > +
> > +## Make hello_world an executable script
> > +
> > +Add a shebang to `hello_world.cf` in order to invoke CFEngine policy as an executable script:
> > +```
> > +#!/var/cfengine/bin/cf-agent -Kf
> My bad, I was not consistent in using the long options here. Please change it to this
> #!/var/cfengine/bin/cf-agent --no-lock
> This full path is required for the shebang to work so the above statement about using just cf-agent instead of the full path does not apply.
> 
> It also needs fixed in the example itself just below
> 
> —
> Reply to this email directly or view it on GitHub.
>