我正在尝试在Windows机器上的cygwin上执行此.sh脚本,但收到此错误。
这是剧本:
fetchReviewImages.sh
====================
#!/bin/bash
mysql -u root -pjavahot -B -e "SELECT camera_name, id FROM inteliviz.cameras;" --skip-column-names | while read CAM_NAME CAM_ID
do
/xampp/htdocs/getReviewImages.py $CAM_ID
done
Cygwin error:
===============
$ C:/cygwin/bin/sh.exe -l -c "C:/xampp/htdocs/fetchReviewImages.sh"
C:/xampp/htdocs/fetchReviewImages.sh: line 3: mysql: command not found