public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Raj Kumar Sanpui <raj.kumar.sanpui@gmail.com>
To: cygwin@cygwin.com
Subject: ssh to cygwin-box and access remote exe fails saying exe is a directory
Date: Wed, 14 Oct 2020 11:23:53 +0530	[thread overview]
Message-ID: <CADbNrRO2_Mv5MS=b9t7=GDjSy5GmzTf70BEkm5ecE63PyhuHQw@mail.gmail.com> (raw)

Hi All,

I am trying to access an exe hosted in a shared drive in a remote machine.
(Please note: T*he exe is NOT hosted on the box where cygwin is installed
but a different one*.)


*Case 1: Which fails*
If i ssh to the Windows box where cygwin is installed, and then try to
access the remote exe it *fails saying "exe is a directory"*

[rundeck@den PKG_INSTALL_SERVICE]$ cat snapshot1.bat | ssh
rsanpui@cygwin-box

Pseudo-terminal will not be allocated because stdin is not a terminal.
-bash: line 1: //remote-box/owshare/owinstal/Snapshot/SnapShot.exe: *Is a
directory*

What i have inside snapshot1.bat is simple -
[rundeck@den PKG_INSTALL_SERVICE]$ cat snapshot1.bat
"//remote-box/owshare/owinstal/Snapshot/SnapShot.exe"

*Case 2: Which works*
If i login to the Windows VM where cygwin is installed, and try to access
the same remote exe it works.

What am I missing? Please advise.

Thanks

             reply	other threads:[~2020-10-14  5:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14  5:53 Raj Kumar Sanpui [this message]
2020-12-05 13:46 ` Raj Kumar Sanpui
2020-12-05 15:24   ` Raj Kumar Sanpui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADbNrRO2_Mv5MS=b9t7=GDjSy5GmzTf70BEkm5ecE63PyhuHQw@mail.gmail.com' \
    --to=raj.kumar.sanpui@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).