[chef] How to parse out ShellOut


Chronological Thread 
  • From: Sachin Gupta < >
  • To: " " < >
  • Cc: sachin kumar < >
  • Subject: [chef] How to parse out ShellOut
  • Date: Sat, 14 Feb 2015 19:12:36 +0530

Hi All,

I am working on a use case where I am looking a way to parse out ShellOut and issue a reboot if the condition is met?  I’ve highlighted what I need to look for to issue a reboot.

Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -ExecutionPolicy RemoteSigned -InputFormat None -File "C:/Users/ADMINI~1/AppData/Local/Temp/2/chef-script20150213-808-kkqdzx.ps1" ----STDOUT:
STDERR: Please restart the computer before trying to install more roles/features
---- End output of "powershell.exe" -NoLogo -NonInteractive -NoProfile -Executio



Thanks & Regards,
Sachin Gupta



Archive powered by MHonArc 2.6.16.

§