2016-06-09 25 views

回答

0

您可以使用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

+0

测试,如果我有背景其他厨师将等待此完成创业吗? –

+0

一旦你统计后台进程,前景将继续向前。您将需要另一种同步方式。 –