0
我無法找到在cygwin中使用廚師在Windows中執行shell腳本有無論如何做到這一點嗎?使用通過廚師cygiwn執行shell腳本
我無法找到在cygwin中使用廚師在Windows中執行shell腳本有無論如何做到這一點嗎?使用通過廚師cygiwn執行shell腳本
您可以使用script
資源並將interpreter
屬性設置爲bash
。只要確保命令bash
在您的PATH上。
script "test_module" do
interpreter "bash"
code <<-EOH
echo 'Starting the script...'
cp C:/Temp/testfile.txt C:/Temp/testfile2.txt
EOH
end
這是在Windows 10
測試,如果我有背景其他廚師將等待此完成創業嗎? –
一旦你統計後臺進程,前景將繼續向前。您將需要另一種同步方式。 –