[chef] Re: execute a scripts included in the cookbook


Chronological Thread 
  • From: Morgan Blackthorne < >
  • To: " " < >
  • Subject: [chef] Re: execute a scripts included in the cookbook
  • Date: Fri, 12 Jul 2013 10:17:42 -0700

Under Unix the exit code of the script is what determines success (0 is fine, anything else is bad). Not sure if Windows supports that, though?

On Friday, July 12, 2013, Florian Hehlen wrote:

Hi,

 

Thanks for that pointer.

 

Is there a way to pipe the output of the script back into chef? I am running a powershell script and get a “successfully run” message although it clearly has not run

 

Cheers,

florian

 

From: Ranjib Dey [mailto: ');" target="_blank"> ]
Sent: 12 July 2013 16:04
To: ');" target="_blank">
Subject: [chef] Re: execute a scripts included in the cookbook

 

yes you can, you can use the cookbook_file to dirstribute/install the script in a location  (say /usr/local/foo) and use the execute  resource to invoke it (execute "/usr/local/foo"),

 

 

On Fri, Jul 12, 2013 at 6:52 AM, Florian Hehlen < ');" target="_blank"> > wrote:

HI,

 

I would like to include a native script and execute it from a recipe rather than in-lining it into the recipe.

 

Is this possiblem

 

Cheers,

Florian

 

LEGAL DISCLAIMER
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.

 



LEGAL DISCLAIMER
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.



--
--
~*~ StormeRider ~*~

"Every world needs its heroes [...] They inspire us to be better than we are. And they protect from the darkness that's just around the corner."

(from Smallville Season 6x1: "Zod")

On why I hate the phrase "that's so lame"... http://bit.ly/Ps3uSS




Archive powered by MHonArc 2.6.16.

§