<?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: PERL script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001694#M28331</link>
    <description>what wil be the change in case of put.&lt;BR /&gt;actually i dont want to get directories.&lt;BR /&gt;i want to put some directories with files inside.&lt;BR /&gt;&lt;BR /&gt;i also didnt understand the line where u called the subroutine.</description>
    <pubDate>Thu, 17 May 2007 03:20:59 GMT</pubDate>
    <dc:creator>Praveen Ravi</dc:creator>
    <dc:date>2007-05-17T03:20:59Z</dc:date>
    <item>
      <title>PERL script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001691#M28328</link>
      <description>How to transfer a directory in FTP using PERL script?&lt;BR /&gt;i have tried transfering single files using the put command. But i m not able to use the mput command in PERL script</description>
      <pubDate>Thu, 17 May 2007 02:09:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001691#M28328</guid>
      <dc:creator>Praveen Ravi</dc:creator>
      <dc:date>2007-05-17T02:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001692#M28329</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;There are two ways I would attack this problem.&lt;BR /&gt;1. Use the perl module Net::FTP which has lots of functions built about ftp'ing multiple files and indeed all te ftp functions possible as if on the command line.&lt;BR /&gt;&lt;BR /&gt;2. I have in the past used "expect" scripts to automate actions that require user input such as ftp, scp etc.&lt;BR /&gt;&lt;BR /&gt;Expect is simple to use and understand.&lt;BR /&gt;see http:://expect.nist.gov/&lt;BR /&gt;&lt;BR /&gt;You can exven cheat a little and use autoexpect to macro record your actions on the command line and use as the basis of your script.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 17 May 2007 02:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001692#M28329</guid>
      <dc:creator>Pete Hakesley</dc:creator>
      <dc:date>2007-05-17T02:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001693#M28330</link>
      <description>I'm not sure about Net::FTP, but you can transfer directories with Net::FTP::Recursive module.&lt;BR /&gt;Here's a working example, that will download all the contents (including subdirectories) of the /pub directory.&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use Net::FTP::Recursive;&lt;BR /&gt;$ftp = Net::FTP::Recursive-&amp;gt;new("&lt;IP address=""&gt;", Debug =&amp;gt; 0);&lt;BR /&gt;$ftp-&amp;gt;login("username",'password');&lt;BR /&gt;#$ftp-&amp;gt;cwd('/pub');&lt;BR /&gt;$ftp-&amp;gt;rget( ParseSub =&amp;gt; \&amp;amp;yoursub );&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;sub yoursub {&lt;BR /&gt;        $ftp-&amp;gt;rget;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You will need to install this module on your machine (download it from:&lt;BR /&gt;&lt;A href="http://search.cpan.org/~jdlee/Net-FTP-Recursive-2.00/)," target="_blank"&gt;http://search.cpan.org/~jdlee/Net-FTP-Recursive-2.00/),&lt;/A&gt; as it's not there by default.&lt;/IP&gt;</description>
      <pubDate>Thu, 17 May 2007 02:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001693#M28330</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-05-17T02:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001694#M28331</link>
      <description>what wil be the change in case of put.&lt;BR /&gt;actually i dont want to get directories.&lt;BR /&gt;i want to put some directories with files inside.&lt;BR /&gt;&lt;BR /&gt;i also didnt understand the line where u called the subroutine.</description>
      <pubDate>Thu, 17 May 2007 03:20:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001694#M28331</guid>
      <dc:creator>Praveen Ravi</dc:creator>
      <dc:date>2007-05-17T03:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: PERL script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001695#M28332</link>
      <description>Change directory to a directory that holds directories with files.From that directory&lt;BR /&gt;&lt;BR /&gt;run the following script and it will update those directories to the FTP.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;use Net::FTP::Recursive;&lt;BR /&gt;$ftp = Net::FTP::Recursive-&amp;gt;new("&lt;IP address=""&gt;", Debug =&amp;gt; 0);&lt;BR /&gt;$ftp-&amp;gt;login("username",'password');&lt;BR /&gt;$ftp-&amp;gt;rput( ParseSub =&amp;gt; \&amp;amp;yoursub );&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;sub yoursub {&lt;BR /&gt;$ftp-&amp;gt;rput;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;For more information read here:&lt;BR /&gt;&lt;A href="http://search.cpan.org/~jdlee/Net-FTP-Recursive-2.00/Recursive.pm" target="_blank"&gt;http://search.cpan.org/~jdlee/Net-FTP-Recursive-2.00/Recursive.pm&lt;/A&gt;&lt;BR /&gt;&lt;/IP&gt;</description>
      <pubDate>Thu, 17 May 2007 05:19:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/perl-script/m-p/4001695#M28332</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-05-17T05:19:55Z</dc:date>
    </item>
  </channel>
</rss>

