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