This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Ask for help on running interactive cmd in Mintty!


On Wed, Jun 20, 2012 at 3:16 AM, Tian You wrote:
> Hi All
>
> I'm running a perl program like this:
>
> ## script start ##
> print "Please input:";
> my $input = <STDIN>;
> chomp $input;
>
> system("ssh to a remote machine to run an command");
> print "done\n";
> ## script done ##
>
> But after I input something and press enter, I can not see the output
> of the ssh command.
> Only after I press any key, the output flushes out to the screen.
> Is the output buffered? But why it flushed after I press any one key?
>

Are you starting in mintty or rxvt?  What happens if you don't use
either of those?  I suspect that your ssh isn't a Cygwin build and you
are seeing the effect of PTY as pipes emulation.

-- 
Earnie
-- https://sites.google.com/site/earnieboyd

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]