<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh - PERL in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726564#M100916</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;perl has a command called system, which I use for these purposes.&lt;BR /&gt;&lt;BR /&gt;You may be doing it differently, but you may wish to try that.&lt;BR /&gt;&lt;BR /&gt;ssh is on the PATH?&lt;BR /&gt;&lt;BR /&gt;Perhaps try the full path of this in the shell.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Tue, 07 Feb 2006 18:22:11 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2006-02-07T18:22:11Z</dc:date>
    <item>
      <title>ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726563#M100915</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;I am using ssh in my PERL script.&lt;BR /&gt;&lt;BR /&gt;The pur pose of my script is to log into a remote machine and execute a perl script there which takes a minute or so to execute. The remote perl script creates a report and I need to cp that report to my machine using "scp".&lt;BR /&gt;&lt;BR /&gt;The portion of my script which does this is as following:&lt;BR /&gt;&lt;BR /&gt;my $cmd = "ssh user\@password perl report.pl";&lt;BR /&gt;my @result = `$cmd`;&lt;BR /&gt;print @result;&lt;BR /&gt;&lt;BR /&gt;I don't get any errors but the output is never created in the remote machine.&lt;BR /&gt;&lt;BR /&gt;I just receive the message:&lt;BR /&gt;&lt;BR /&gt;"Please wait while your request is getting processed" which is the message from the remote perl script while creating the output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Even if I just use ssh from command line, I don't see any errors but the output file is not cretaed in the remote machine. Here also I just get the "Please wait" message and then it returns to the command prompt.&lt;BR /&gt;&lt;BR /&gt;Can anyone please tell me how do I make the ssh session to wait till the output file is created by the perl script in the remote machine.&lt;BR /&gt;&lt;BR /&gt;Thanks,javascript&amp;amp;colon;postMessageSubmit('submit');&lt;BR /&gt;Submit&lt;BR /&gt;Anand&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726563#M100915</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2006-02-07T18:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726564#M100916</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;perl has a command called system, which I use for these purposes.&lt;BR /&gt;&lt;BR /&gt;You may be doing it differently, but you may wish to try that.&lt;BR /&gt;&lt;BR /&gt;ssh is on the PATH?&lt;BR /&gt;&lt;BR /&gt;Perhaps try the full path of this in the shell.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 07 Feb 2006 18:22:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726564#M100916</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-02-07T18:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726565#M100917</link>
      <description>I would suggest that you use the Net::SSH module to do whatever you need to do.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~ivan/Net-SSH-0.08/SSH.pm" target="_blank"&gt;http://search.cpan.org/~ivan/Net-SSH-0.08/SSH.pm&lt;/A&gt;</description>
      <pubDate>Tue, 07 Feb 2006 18:27:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726565#M100917</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-02-07T18:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726566#M100918</link>
      <description>I agree with Sensei A. Clay.&lt;BR /&gt;&lt;BR /&gt;system() should be outlawed in Perl shell scripts as do direct calls to commands like ssh/ftp,etc. Most common tools/utils now have their corresponding Perl Modules on CPAN.&lt;BR /&gt;&lt;BR /&gt;I am starting to get serious with Perl these days and I was amazed at the many really useful modules at CPAN that were not there last time I looked ( long time...).&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Feb 2006 20:34:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726566#M100918</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2006-02-07T20:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726567#M100919</link>
      <description>1. system () should not be outlawed, as it is VERY useful. Do not propagate wrong answers&lt;BR /&gt;&lt;BR /&gt;2. The problem with many, if not all, SSL/SSH related perl modules is that most are XS based modules that require to be compiled with the C compiler. That is however not the biggest problem, as the GNU gcc compiler is widely available, and causes less and less trouble with every new release.&lt;BR /&gt;The trouble comes with ssl/ssh related source files needing the development files of ssl/ssh, and I've seen too often that these are either not available at all, or that the wrong version is available (32bit where 64bit is needed or vice versa).&lt;BR /&gt;The latter causes more headaches than it solves, and warrents the use of external ssh/scp/ftp calls through system () or qx// in your scripts.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn [ who tries to include SSH modules in his perl builds wherever possible ]</description>
      <pubDate>Wed, 08 Feb 2006 02:35:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726567#M100919</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-02-08T02:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726568#M100920</link>
      <description>Hi Anand, &lt;BR /&gt;&lt;BR /&gt;Net::SSH will be helpful to you, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.stupidfool.org/perl/net-ssh/" target="_blank"&gt;http://www.stupidfool.org/perl/net-ssh/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.stupidfool.org/perl/docs/perldoc/Net/SSH/Perl.html" target="_blank"&gt;http://www.stupidfool.org/perl/docs/perldoc/Net/SSH/Perl.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Procura, how about using this module ? Or it is included in your latest Perl (5.8.8 or 5.8.7) build ? &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 08 Feb 2006 02:40:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726568#M100920</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-02-08T02:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726569#M100921</link>
      <description>I've listed what is included on my site too: &lt;A href="http://mirrors.develooper.com/hpux/#Perl" target="_blank"&gt;http://mirrors.develooper.com/hpux/#Perl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Crypt::SSLeay, Net::SSLeay, &amp;amp; IO::Socket::SSL&lt;BR /&gt;&lt;BR /&gt;Net::SSH is not included (yet). I'll consider including it in the upcoming releases.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 08 Feb 2006 03:25:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726569#M100921</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-02-08T03:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726570#M100922</link>
      <description>Net::SSH is just a perl wrapper around the system calls. I've just browsed the code, and found:&lt;BR /&gt;&lt;BR /&gt;--8&amp;lt;---&lt;BR /&gt;sub ssh {&lt;BR /&gt;  my ($host, @command) = @_;&lt;BR /&gt;  @ssh_options = &amp;amp;_ssh_options unless @ssh_options;&lt;BR /&gt;  my @cmd = ($ssh, @ssh_options, $host, @command);&lt;BR /&gt;  warn "[Net::SSH::ssh] executing ". join (' ', @cmd). "\n"&lt;BR /&gt;    if $DEBUG;&lt;BR /&gt;  system (@cmd);&lt;BR /&gt;}&lt;BR /&gt;--&amp;gt;8---&lt;BR /&gt;&lt;BR /&gt;Which I find a bit simplistic, and certainly not good enough a reason to include this module.&lt;BR /&gt;&lt;BR /&gt;A better solution would be to use Net::SSH::Perl, which is a perl implementation that does not use the external commands, but this module has too many dependancies (*) to add it to my distribution(s). So I will probably not do so.&lt;BR /&gt;&lt;BR /&gt;(*) PREREQUISITES&lt;BR /&gt;&lt;BR /&gt;Protocol 1&lt;BR /&gt;&lt;BR /&gt;    * Math::GMP (1.04 or greater)&lt;BR /&gt;    * String::CRC32 (1.2 or greater)&lt;BR /&gt;    * Digest::MD5&lt;BR /&gt;    * IO::Socket&lt;BR /&gt;&lt;BR /&gt;Protocol 2&lt;BR /&gt;&lt;BR /&gt;    * Crypt::DSA (0.03 or greater)&lt;BR /&gt;    * Crypt::DH (0.01 or greater)&lt;BR /&gt;    * Math::Pari (2.001804 or greater)&lt;BR /&gt;    * MIME::Base64&lt;BR /&gt;    * Digest::MD5&lt;BR /&gt;    * Digest::SHA1&lt;BR /&gt;    * Digest::HMAC_MD5&lt;BR /&gt;    * Digest::HMAC_SHA1&lt;BR /&gt;    * Convert::PEM (0.05 or greater)&lt;BR /&gt;    * IO::Socket&lt;BR /&gt;&lt;BR /&gt;It also optionally requires Digest::BubbleBabble for&lt;BR /&gt;generating bubble babble fingerprints, and Crypt::RSA&lt;BR /&gt;(1.37 or greater) if you want to use RSA key files in SSH2.&lt;BR /&gt;&lt;BR /&gt;Note that RSA key files in SSH1 do not require Crypt::RSA.&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Wed, 08 Feb 2006 03:33:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726570#M100922</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2006-02-08T03:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726571#M100923</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I used the PERL SSH module and it worked fine. Thanks to all of you.&lt;BR /&gt;&lt;BR /&gt;Anand</description>
      <pubDate>Wed, 08 Feb 2006 13:06:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726571#M100923</guid>
      <dc:creator>Anand_30</dc:creator>
      <dc:date>2006-02-08T13:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: ssh - PERL</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726572#M100924</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Why not using expect with ssh ? I have open a thread on it and Doug O'Leary answer me. Have a look.&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;Patrice</description>
      <pubDate>Wed, 08 Feb 2006 17:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-perl/m-p/3726572#M100924</guid>
      <dc:creator>Patrice Le Guyader</dc:creator>
      <dc:date>2006-02-08T17:10:14Z</dc:date>
    </item>
  </channel>
</rss>

