2016-06-09 57 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

一旦你統計後臺進程,前景將繼續向前。您將需要另一種同步方式。 –