This is the mail archive of the
mailing list for the Cygwin project.
Re: problem with subshells or childs?
Have you tried something like (with explicit .exe extension):
/bin/rsync -Cavz -e "/usr/bin/ssh.exe" /cygdrive/d/ server:/home/ml/backups/
Probably won't help.
As both with or without extension work for me.
If you call sh like this, sh will try to run the file as shell script.[...]
And of course ls is not a shell script.
To run a binary command (or any command actually) with sh, the command
sh -c ls
i need some help with this:
My plan was to use rsync via ssh from a bash script. But rsync could
not run ssh for whatever reason: no such file or directory.
For quicker checking, invoking "bash -e ls" or just "sh ls" shows the
same problem - see below.
sh -c ls works. However, the the original problem was that this little
shell script is not working:
/bin/rsync -Cavz -e "/usr/bin/ssh" /cygdrive/d/ server:/home/ml/backups/
rsync: Failed to exec "ssh: No such file or directory (2)
rsync error: error in IPC code (code 14) at
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at
rsync cannot find /usr/bin/ssh, but it is there.
I also tried just "ssh", since it is in the path and /bin/ssh.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html