X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=3.7 required=5.0	tests=AWL,BAYES_60,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Mon, 28 Nov 2011 21:06:15 +0400
From: Andrey Repin <anrdaemon@freemail.ru>
Reply-To: Andrey Repin <cygwin@cygwin.com>
Message-ID: <162569743.20111128210615@mtu-net.ru>
To: Costin Caraivan <costincaraivan@gmail.com>, cygwin@cygwin.com
Subject: Re: Problem with ssh in non-interactive mode and mapped drives
In-Reply-To: <CAEYw_q=wnEjzL_sc=568jPgcQ5V9EbCF3mdNq2X+A5BF-c4H0Q@mail.gmail.com>
References: <CAEYw_q=wnEjzL_sc=568jPgcQ5V9EbCF3mdNq2X+A5BF-c4H0Q@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Greetings, Costin Caraivan!

> When running the command non-interactively, with this: ssh
> PROJECTctier@LOCATIONsd-vm-admin.PROJECT.COMPANY.com 'COMMAND', I get
> this:
> No such file: /cygdrive/z/builds/latest/PROJECT_TM.zip
> bash: line 0: [: c3e3cb8bb6b7b07915755ba8d242fa56: unary operator expected
> PROJECT_TM package MD5 did not match expected MD5:
> c3e3cb8bb6b7b07915755ba8d242fa56
> Connection to LOCATIONsd-vm-admin.PROJECT.COMPANY.com closed.

> I tried ssh -t, ssh -tt, same thing happens.

> Got any idea why the file is not found in non-interactive mode?

Your SSH session not aware of your drive mappings.
Either do your mapping in startup script or use UNC path.


--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 28.11.2011, <21:04>

Sorry for my terrible english...


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

