delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/18/12:48:57

X-Spam-Check-By: sourceware.org
Message-Id: <200512181747.jBIHld2m012332@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: <do430i$8lh$1@sea.gmane.org>
References: <200512171952 DOT jBHJqHoG029462 AT tigris DOT pounder DOT sol DOT net> <20051217214541 DOT GA18982 AT trixie DOT casa DOT cgf DOT cx> <200512181446 DOT jBIEkj1h011614 AT tigris DOT pounder DOT sol DOT net> <do430i$8lh$1 AT sea DOT gmane DOT org>
Date: Sun, 18 Dec 2005 11:47:38 -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

This is getting a bit OT-  I still plan post an example 
that does not use plink, may hunch is that the problem will still
show up.. we'll see.

On Sun 12/18/05 8:33 PST Andrew DeFaria wrote:
> cygwin AT trodman DOT com wrote:
> 
> >> You seem to be expecting that the people whom you'd like to debug 
> >> your problem would know what "plink" is.
> >
> > Sorry, it's closely related to putty. I don't have a good link 
> > specifically for plink..
> >
> > http://www.chiark.greenend.org.uk/~sgtatham/putty/faq.html
> 
> It says "PuTTY is a client program for the SSH, Telnet and Rlogin 
> network protocols". I don't get it. In Cygwin you have all of ssh, 
> telnet and rlogin/rsh. That being the case why install/use putty or plink?

A cygwin expect script combined with the cygwin ssh client will do
the same thing.  Honestly I (wrongly) thought the plink example
was going to be easier to follow - sorry.

plink allows you to place the password on the commandline - I know that
is a security issue, but in the real world case, at least I de-crypt
the password and programatically create the plink command line, so I
have no clear text passwords in a script. The reason for sshing to the
localhost (via plink or expect) with *password* authentication, is so
the process running the cron job has full rights to network drives etc.
I could avoid the ssh to localhost, by mapping drives inside yet another
cron wrapper script, but I fear I'll discover other rights the process
won't have, that I have yet to learn about.

> BTW, you're probably is probably the same if you used ssh in Cygwin - 
> once you remote login Unix based tools such as ssh (and probably putty 
> and plink) use ptys which Windows console programs don't understand, and 
> often stdout is lost. If you want that one fixed you'll have to talk to 
> Mr. Gates.

Did you notice that the problem I posted is *not* a problem, in the
earlier cygwin snapshot? It is not a problem for the very old version of
cygwin that I'm trying to upgrade either.

--
thanks/regards,
Tom

--
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