X-Spam-Check-By: sourceware.org
Message-Id: <200512181747.jBIHld2m012332@tigris.pounder.sol.net>
From: cygwin@trodman.com
To: cygwin@cygwin.com
Subject: Re: STDOUT of non cygwin command lost (in automated ssh session)
In-reply-to: <do430i$8lh$1@sea.gmane.org>
References: <200512171952.jBHJqHoG029462@tigris.pounder.sol.net> <20051217214541.GA18982@trixie.casa.cgf.cx> <200512181446.jBIEkj1h011614@tigris.pounder.sol.net> <do430i$8lh$1@sea.gmane.org>
Date: Sun, 18 Dec 2005 11:47:38 -0600
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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@trodman.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/

