From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by sourceware.org (Postfix) with ESMTPS id A0CB33857C4C for ; Wed, 14 Oct 2020 05:54:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A0CB33857C4C Received: by mail-lf1-x12a.google.com with SMTP id l28so2310640lfp.10 for ; Tue, 13 Oct 2020 22:54:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=NTToHiWA0BRfMgk6vKNDp59Ft2BFddpG34b6QqfxBnc=; b=qL9Lpf9rFTca7n1rzhCk90d7k8YF8SYFVTubsOGLK9AKnfhgcpoQ9aRsfs0JUajNTw z+SuOcXWrQ8pxojnsnUtcy90BNWZhrHmVe/mM5UOpSw1uYWQk0Bd4kTLsZbdTdhg4DaY 60Or9rLafTrDAimDwoFHizjNgJiGpWZZQg8pelgxG0n0j6SLzuVo/AOLTj5DdtWFOHdd KuTsQHl2d+8a6SAD/GHzMIh/e/5Zxo20UlVxgntOuT5i1xpxAMBahMB0yeO/GUFAzpMG uSXMeuOXGT9zmAYOFcF25axc969AgrYGtYSAo6UCX3SGmu67tlaQRa1uOmAGRhcdmrlv I+nA== X-Gm-Message-State: AOAM531JOEyFaWMSOXR/psOKfAc0U9S0muJDZ82M07jUEgqAKED4SvJU emCJRnjEcDShlJ9/Rrk5yqEQe8ckSpJT1CQIYX19iAurcb71tw== X-Google-Smtp-Source: ABdhPJwJzvqdUch3Xth/bhGax2M7+NYrLK3gySo7HY54CnNs7NzdW62oVYvrTAEmIz/354GC0fuOWLxRNuy1EH1+wvs= X-Received: by 2002:ac2:47f5:: with SMTP id b21mr760407lfp.483.1602654844020; Tue, 13 Oct 2020 22:54:04 -0700 (PDT) MIME-Version: 1.0 From: Raj Kumar Sanpui Date: Wed, 14 Oct 2020 11:23:53 +0530 Message-ID: Subject: ssh to cygwin-box and access remote exe fails saying exe is a directory To: cygwin@cygwin.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2020 05:54:07 -0000 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