2
我需要檢查與廚師的聯繫。檢查與廚師的聯繫
我在努力。
execute "check_sayc" do
command "$comprobacionPuerto='nc -zw3 server port && echo 'opened'
|| echo 'closed'|grep 'opened' if [[ -z $comprobacionPuerto ]]
then Chef::Log.fatal 'connections refuse' else Chef::Log.info 'connections open' fi'"
end
但
Mixlib::ShellOut::ShellCommandFailed: execute[check_sayc]
(cb_prueba_frontal_deploy_databag::default line 7) had an error:
Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received
'127'
什麼這是錯的?
我怎麼能超時? – 2013-02-22 13:37:10
請參閱我的編輯。請注意,您將體驗與'nc'一樣的長時間默認超時。 – 2013-02-22 13:58:01
完美,謝謝。 – 2013-02-25 06:57:01