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
测试,如果我有背景其他厨师将等待此完成创业吗? –
一旦你统计后台进程,前景将继续向前。您将需要另一种同步方式。 –