我有一个unix shell脚本,我成功运行了Cygwin。由于脚本将由没有IT知识的人使用,我希望它通过批处理文件执行。
我使用以下内容创建了.bat文件:
@echo off
C:\cygwin64\bin\bash C:\Sparkpay\MainScripts\converttocsv.sh
它无法运行但出现以下错误:
C:\Sparkpay\MainScripts\converttocsv.sh: line 9: ls: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 9: awk: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 10: date: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 15: cat: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 15: sed: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 15: uniq: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 99: rm: command not found
C:\Sparkpay\MainScripts\converttocsv.sh: line 100: mv: command not found
我更新了PATH
以包含c:\cygwin64\bin\bash
。
我错过了什么吗?
谢谢