Home > Backend Development > PHP Tutorial > 怎么在cygwin中运行.sh文件

怎么在cygwin中运行.sh文件

WBOY
Release: 2016-06-13 12:43:21
Original
1602 people have browsed it

如何在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:吗 还是什么原因,愿用过的朋友指点,感激不尽! 

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template