delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/07/06/03:45:41

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Kiyo Kelvin Lee <kiyolee AT hotmail DOT com>
Subject: Re: problem with subshells or childs?
Date: Thu, 06 Jul 2006 17:45:06 +1000
Lines: 49
Message-ID: <e8if24$o3e$1@sea.gmane.org>
References: <44ACA975 DOT 3070601 AT hmdc DOT de> <44ACB2E7 DOT 9050203 AT hotmail DOT com> <44ACBA79 DOT 2060306 AT hmdc DOT de>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
In-Reply-To: <44ACBA79.2060306@hmdc.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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.

Regards,
Kiyo

ml wrote:
> Hi!
> 
> [...]
>> 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 
>> should be:
>>
>>     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:
> 
> #!/usr/bin/sh
> /bin/rsync -Cavz -e "/usr/bin/ssh" /cygdrive/d/ server:/home/ml/backups/
> 
> Error is:
> rsync: Failed to exec "ssh: No such file or directory (2)
> rsync error: error in IPC code (code 14) at 
> /home/lapo/packaging/tmp/rsync-2.6.6/pipe.c(83)
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> rsync error: error in rsync protocol data stream (code 12) at 
> /home/lapo/packaging/tmp/rsync-2.6.6/io.c(434)
> 
> rsync cannot find /usr/bin/ssh, but it is there.
> I also tried just "ssh", since it is in the path and /bin/ssh.
> 
> Thanks,
> ml
> 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019