On Thu, 18 Nov 2004, Stephen Studley wrote:

> At 2:12 PM -0500 11/18/04, Igor Pechtchanski wrote:
> > On Thu, 18 Nov 2004, Stephen Studley wrote:
> >  > The successful scenario simply returns the expect stdout:
> > >  debug3: channel 0: will not send data after close
> > >  <some dir>/<files>
> > >
> > >  Thanks in advance.
> > >
> > >  Stephen
> >
> > Try giving the "-n" argument to ssh.
>
> unfortunately, no change in my results.
> BTW: I have ssh configured for passwordless connection.

You *did* properly escape the command string, right?  Otherwise,

my $str = `ssh -n [EMAIL PROTECTED] ls`;

will try to interpolate the contents of the array @machine into the
command...  You need to use

my $str = `ssh -n [EMAIL PROTECTED] ls`;

BTW, the -n flag is still useful, since some commands don't properly run
otherwise.
        Igor
-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

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

Reply via email to