delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/28/12:20:45

X-Recipient: archive-cygwin AT delorie DOT 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 AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <162569743.20111128210615@mtu-net.ru>
To: Costin Caraivan <costincaraivan AT gmail DOT com>, cygwin AT cygwin DOT 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 AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Greetings, Costin Caraivan!

> When running the command non-interactively, with this: ssh
> PROJECTctier AT LOCATIONsd-vm-admin DOT PROJECT DOT COMPANY DOT 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 AT freemail DOT 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

- Raw text -


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