This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problem with ssh in non-interactive mode and mapped drives
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: Costin Caraivan <costincaraivan at gmail dot com>, cygwin at cygwin dot com
- Date: Mon, 28 Nov 2011 21:06:15 +0400
- Subject: Re: Problem with ssh in non-interactive mode and mapped drives
- References: <CAEYw_q=wnEjzL_sc=568jPgcQ5V9EbCF3mdNq2X+A5BF-c4H0Q@mail.gmail.com>
- Reply-to: Andrey Repin <cygwin at cygwin dot 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