[英]rsync, cygwin and shell file windows
Using Cygwin I can use rysnc as expected, but using the same rysnc command from a shell file I see: 使用Cygwin我可以按预期使用rysnc,但是使用shell文件中的相同rysnc命令,我看到:
'rsync: command not found'
'rsync:找不到命令'
Script is: 脚本是:
#!/bin/sh
echo 'Moving local media to dev server'
rysnc -vruz --progress -chmod=0755 --exclude catalog/product/cache media user@domain:/var/sites/folder/folder
execution: 执行:
$ ./script.sh
Looks like a typo to me. 看起来像是一个错字。 Change
rysnc
to rsync
. 将
rysnc
更改为rsync
。
PS: Don't type in error messages. PS:不要输入错误消息。 Cut and paste them.
剪切并粘贴它们。 Each and every character is important to diagnose the problem.
每个角色对于诊断问题都很重要。
Perhaps cygwin is not installed on your machine. 也许你的机器上没有安装cygwin。 Install it from the Cygwin
setup.exe
that can be downloaded on www.cygwin.com 从可以在www.cygwin.com上下载的Cygwin
setup.exe
安装它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.