<?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 Perl script to FTP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324732#M341192</link>
    <description>I need a perl script to ftp the files which is in .txt,.sh and .pl files. once i run this script in unix remote machine it should ftp the files and it should  save it in local windows machine. kindly help me..ASAP ,thanks well in advance &lt;BR /&gt;</description>
    <pubDate>Wed, 17 Dec 2008 10:22:49 GMT</pubDate>
    <dc:creator>sweetyselvi</dc:creator>
    <dc:date>2008-12-17T10:22:49Z</dc:date>
    <item>
      <title>Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324732#M341192</link>
      <description>I need a perl script to ftp the files which is in .txt,.sh and .pl files. once i run this script in unix remote machine it should ftp the files and it should  save it in local windows machine. kindly help me..ASAP ,thanks well in advance &lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2008 10:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324732#M341192</guid>
      <dc:creator>sweetyselvi</dc:creator>
      <dc:date>2008-12-17T10:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324733#M341193</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.dtp-aus.com/cgiscript/allcgi.shtml" target="_blank"&gt;http://www.dtp-aus.com/cgiscript/allcgi.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;That link contains a script you can use as a base to modify for this purpose.&lt;BR /&gt;&lt;BR /&gt;Some assembly required.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 17 Dec 2008 11:18:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324733#M341193</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-12-17T11:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324734#M341194</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;And what have you tried to build yourself?&lt;BR /&gt;&lt;BR /&gt;If you look at the CPAN documentation for Net::FTP you will see the essentials.  The Net::FTP module is part of the core Perl distrubution since Perl 5.7.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 17 Dec 2008 12:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324734#M341194</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-17T12:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324735#M341195</link>
      <description>I checked in that link which you have specified , but that all related to CGI  perl. i could not able to fine any useful information. Can you able to help in any other way?&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2008 10:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324735#M341195</guid>
      <dc:creator>sweetyselvi</dc:creator>
      <dc:date>2008-12-18T10:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324736#M341196</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Can you able to help in any other way?&lt;BR /&gt;&lt;BR /&gt;Yes, as I said above: If you look at the CPAN documentation for Net::FTP you will see the essentials.&lt;BR /&gt;&lt;BR /&gt;You should easily be able to build what you need.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 18 Dec 2008 14:01:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324736#M341196</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-18T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324737#M341197</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I could not able to find out that document,&lt;BR /&gt;is any package  required to use this Net::FTP function in perl program.&lt;BR /&gt;&lt;BR /&gt;Because its throughing an error,&lt;BR /&gt;&lt;BR /&gt;"Net::ftp -&amp;gt; pack required"&lt;BR /&gt;&lt;BR /&gt;what can i do now?</description>
      <pubDate>Mon, 22 Dec 2008 13:09:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324737#M341197</guid>
      <dc:creator>sweetyselvi</dc:creator>
      <dc:date>2008-12-22T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324738#M341198</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;The module is 'Net::FTP' and as I said, it is part of any core Perl since 5.7.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~gbarr/libnet-1.22/Net/FTP.pm" target="_blank"&gt;http://search.cpan.org/~gbarr/libnet-1.22/Net/FTP.pm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Dec 2008 13:21:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324738#M341198</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-22T13:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324739#M341199</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl -w&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;$ftp =Net::FTP-&amp;gt;new("IP Address",Debug=&amp;gt; 0) or die "Cannot connect to IP Address:$@";&lt;BR /&gt;$ftp-&amp;gt;login("ABCD","AAA@123") or die "Cannot login", $ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;cwd("/pub") or die "Cannot change working directory", $ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;get("tool.pl") or die "get failed", $ftp-&amp;gt;message;&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;With the help of perl active state complier i can able to run this script successfully in windows machine, but multiple get(mget) option is not working fine. Its telling&lt;BR /&gt;&lt;BR /&gt;ERROR -&amp;gt;Cannot locat object method "meget" via package "Net::FTP" at xxx.pl&lt;BR /&gt;&lt;BR /&gt;How to include mget function inside this code?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Selvi&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Dec 2008 12:05:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324739#M341199</guid>
      <dc:creator>sweetyselvi</dc:creator>
      <dc:date>2008-12-30T12:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324740#M341200</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;The Perl 'Net::FTP' module does not have a 'mget' function (as the error you received tells you, too).&lt;BR /&gt;&lt;BR /&gt;To implement a multiple get or put you need to build your own list/array of filenames and perform 'get' or 'put' operations as you iterate over each element.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 30 Dec 2008 13:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324740#M341200</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-12-30T13:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script to FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324741#M341201</link>
      <description>This is the script I use to upload files to my server.  Simply edit the file to include your host, username, and password and invoke it at the command line with the file names that you want to upload as the arguments.  (i.e. - "perl perlftp.pl file1.txt file2.sh file3..."  Hope this helps.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;#perlftp.pl&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;@files = @ARGV;&lt;BR /&gt;&lt;BR /&gt;$remotehost = "some.server.com";&lt;BR /&gt;$remotedir = "/remoter/dir";&lt;BR /&gt;$user = "username";&lt;BR /&gt;$pass = "password";&lt;BR /&gt;&lt;BR /&gt;print "Connecting...\n";&lt;BR /&gt;&lt;BR /&gt;$ftp = Net::FTP-&amp;gt;new("$remotehost", Debug =&amp;gt; 0) or&lt;BR /&gt;      die "cannot connect:";&lt;BR /&gt;&lt;BR /&gt;print "Logging in...\n";&lt;BR /&gt;$ftp-&amp;gt;login("$user","$pass")&lt;BR /&gt;      or die "cannot login: ",$ftp-&amp;gt;message;&lt;BR /&gt;&lt;BR /&gt;print "Changing to $remotedir...\n";&lt;BR /&gt;$ftp-&amp;gt;cwd($remotedir)&lt;BR /&gt;      or die "cannot cwd to $remotedir: ",$ftp-&amp;gt;message ;&lt;BR /&gt;&lt;BR /&gt;print "Beginning Transfer...\n";&lt;BR /&gt;&lt;BR /&gt;foreach $file (@files)&lt;BR /&gt;{&lt;BR /&gt; print "xfering $file..\n";&lt;BR /&gt; $ftp-&amp;gt;put($file);&lt;BR /&gt; $ftp-&amp;gt;message;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;print "Done.\n";</description>
      <pubDate>Thu, 01 Jan 2009 03:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-script-to-ftp/m-p/4324741#M341201</guid>
      <dc:creator>Paul Mata</dc:creator>
      <dc:date>2009-01-01T03:01:18Z</dc:date>
    </item>
  </channel>
</rss>

