当前位置: 代码迷 >> PHP >> 怎么在cygwin中运行.sh文件
  详细解决方案

怎么在cygwin中运行.sh文件

热度:54   发布时间:2016-04-28 21:09:56.0
如何在cygwin中运行.sh文件?
以下是原来在linux下可以运行的auto.sh文件的内容,现在在windows服务器下运行。安装了cygwin、

#!/bin/sh
#
#Script to export
#
while : ;
do
 
       php -d session.save_path=/dev/null -f /www/test.php > /dev/null
       sleep 3
done

运行时报错

-bash-4.1$ ./auto.sh
./auto.sh: line 10: syntax error near unexpected token `done'
./auto.sh: line 10: `done'

是什么原因呢?是我没有安装cygwin没有安装shell库还是什么原因呢?
select packages to install时
选Shells bash: 和bash-completion:吗 还是什么原因,愿用过的朋友指点,感激不尽! 

------解决方案--------------------
该回复于2011-05-11 08:32:18被版主删除
  相关解决方案