delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/18/13:56:18

X-Spam-Check-By: sourceware.org
Message-Id: <200512181855.jBIItwbu012739@tigris.pounder.sol.net>
From: cygwin AT trodman DOT com
To: cygwin AT cygwin DOT com
Subject: Re: STDOUT of non cygwin command lost (in automated ssh session)
In-reply-to: <20051217214541.GA18982@trixie.casa.cgf.cx>
References: <200512171952 DOT jBHJqHoG029462 AT tigris DOT pounder DOT sol DOT net> <20051217214541 DOT GA18982 AT trixie DOT casa DOT cgf DOT cx>
Date: Sun, 18 Dec 2005 12:55:57 -0600
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On Sat 12/17/05 16:45 EST cygwin AT cygwin DOT com wrote:
> On Sat, Dec 17, 2005 at 01:52:17PM -0600, Tom Rodman wrote:
> >background (why plink is used):
--snip
> If you can't duplicate this problem with "off-the-shelf" components 
--snip

test case w/"off-the-shelf" components:

October 29 cygwin1.dll snapshot working OK:

  ~ $ uname -a
  CYGWIN_NT-5.0 OurServer108 1.5.19s(0.141/4/2) 20051029 16:39:28 i686 unknown unknown Cygwin
  ~ $ id
  uid=15773(staffuser1) gid=16027(XYZ_ES_STAFF) groups=544(Administrators),10513(Domain Users),16026(XYZ_ES_ADMIN),16027(XYZ_ES_STAFF),16024(XYZ_Users),545(Users)
  ~ $ ssh-add -l
  2048 18:0b:ca:a6:50:71:4e:d4:2b:ed:a5:41:46:91:cc:0e /home/local/staffuser1/.ssh/id_rsa.OurServer108 (RSA)
  ~ $ ssh localhost 'cd /tmp;set -x;cat bar.bat;cmd /c bar.bat'|head -15
  + cat bar.bat
  + cmd /c bar.bat
  echo hi
  netstat -n

  c:\aut\cyg\tmp>echo hi
  hi

  c:\aut\cyg\tmp>netstat -n

  Active Connections

    Proto  Local Address          Foreign Address        State
    TCP    10.160.5.180:22        10.165.10.182:46935   ESTABLISHED
    TCP    10.160.5.180:445       10.160.5.191:3953      ESTABLISHED
    TCP    10.160.5.180:445       10.160.5.192:1883      ESTABLISHED
    TCP    10.160.5.180:1097      10.160.5.180:5413      ESTABLISHED
  ~ $

Dec 14 cygwin1.dll snapshot - STDOUT is lost:

  ~ $ uname -a
  CYGWIN_NT-5.0 OurServer108 1.5.19s(0.148/4/2) 20051214 14:58:27 i686 unknown unknown Cygwin
  ~ $ id
  uid=15773(staffuser1) gid=16027(XYZ_ES_STAFF) groups=544(Administrators),10513(Domain Users),16026(XYZ_ES_ADMIN),16027(XYZ_ES_STAFF),16024(XYZ_Users),545(Users)
  ~ $ ssh-add -l
  2048 18:0b:ca:a6:50:71:4e:d4:2b:ed:a5:41:46:91:cc:0e /home/local/staffuser1/.ssh/id_rsa.OurServer108 (RSA)
  ~ $ ssh localhost 'cd /tmp;set -x;cat bar.bat;cmd /c bar.bat'
  + cat bar.bat
  echo hi
  netstat -n
  + cmd /c bar.bat

  c:\aut\cyg\tmp>echo hi
  hi

  c:\aut\cyg\tmp>netstat -n
  ~ $

--
I still plan to create a test case using expect, and password authentication..

--
thanks much/regards,
Tom Rodman

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

- Raw text -


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