<?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: Net::FTP multiple file gets in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208990#M325906</link>
    <description>It basically works, but the problem is with&lt;BR /&gt;this line that is trying to "ls" the remote&lt;BR /&gt;server directory and not the local server&lt;BR /&gt;directory. Should it not be some kind of&lt;BR /&gt;local "ls" like with "chdir" in the line:&lt;BR /&gt;&lt;BR /&gt;chdir($local_cwd) or die "Can't cd to '$local_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;without the "$ftp-&amp;gt;" in front of "ls" or&lt;BR /&gt;something?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the line that is trying to do a&lt;BR /&gt;remote listing of a path that only exists&lt;BR /&gt;on the local server and the ftp output below:&lt;BR /&gt;&lt;BR /&gt;my @files = $ftp-&amp;gt;ls($local_cwd) or die "Can't do 'ls'\n";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; CWD /3rdparty/exostar/test/inbox&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;lt;&amp;lt;&amp;lt; 250 CWD command successful.&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; PORT 10,40,167,52,214,72&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;lt;&amp;lt;&amp;lt; 200 PORT command successful.&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; NLST /opt/tools/opsdata.txt/scripts/snet.ftp/aviall&lt;BR /&gt;/aviall.out&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;lt;&amp;lt;&amp;lt; 550 /opt/tools/opsdata.txt/scripts/snet.ftp/aviall/&lt;BR /&gt;aviall.out: No such file or directory.&lt;BR /&gt;Can't do 'ls'&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; QUIT</description>
    <pubDate>Wed, 04 Jun 2008 16:27:43 GMT</pubDate>
    <dc:creator>jerry1</dc:creator>
    <dc:date>2008-06-04T16:27:43Z</dc:date>
    <item>
      <title>Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208978#M325894</link>
      <description>I finally found the line of code to do&lt;BR /&gt;multiple file gets with the Net:FTP module.&lt;BR /&gt;But, how do you specify a destination to put&lt;BR /&gt;the files in, in this line of perl code?&lt;BR /&gt;I am not a perl person.&lt;BR /&gt;&lt;BR /&gt;Here is the line of code to get multiple&lt;BR /&gt;files, since Net::FTP does not support "prompt"&lt;BR /&gt;and "mget" function.&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;get($_) for grep /\.txt/, $ftp-&amp;gt;ls ($file);&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2008 14:48:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208978#M325894</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-02T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208979#M325895</link>
      <description>Take a look here - &lt;A href="http://www.perlmonks.org/?node_id=222823" target="_blank"&gt;http://www.perlmonks.org/?node_id=222823&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and here - &lt;A href="http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_20896557.html" target="_blank"&gt;http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_20896557.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;ivan</description>
      <pubDate>Mon, 02 Jun 2008 19:40:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208979#M325895</guid>
      <dc:creator>Ivan Krastev</dc:creator>
      <dc:date>2008-06-02T19:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208980#M325896</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;To accomplish the equivalent of 'mput' you need to loop over the list (array) of files that you want to 'put'; something like:&lt;BR /&gt;&lt;BR /&gt;for (@files) {&lt;BR /&gt;    $ftp-&amp;gt;put($_)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;In this example, the name of the file on the remote server will be the same as that on the local server.&lt;BR /&gt;&lt;BR /&gt;The documentation for Net::FTP is useful:&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, 02 Jun 2008 20:07:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208980#M325896</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-02T20:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208981#M325897</link>
      <description>James, the "destination" is the path&lt;BR /&gt;to another directory. I'm doing a mget&lt;BR /&gt;not a mput. The line of code only gets and&lt;BR /&gt;puts files in the current directory that I&lt;BR /&gt;run the perl script from.&lt;BR /&gt;&lt;BR /&gt;I am trying to specify an alternate location&lt;BR /&gt;in this line of code.&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;get($_) for grep /\.txt/, $ftp-&amp;gt;ls ($file);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2008 20:24:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208981#M325897</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-02T20:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208982#M325898</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Oh, sorry, I misread "how do you specify a destination to put the files in..." as a question about '[m]put'.&lt;BR /&gt;&lt;BR /&gt;OK, you can simply specify the absolute path:&lt;BR /&gt;&lt;BR /&gt;# $ftp-&amp;gt;get($_, "/path/$_") for grep /\.txt/, $ftp-&amp;gt;ls ($file);&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jun 2008 21:23:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208982#M325898</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-02T21:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208983#M325899</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Actually, rather than add a /path as I first suggested, your script can be better served if you change your local current directory to whatever you want, before you perform the 'get'.&lt;BR /&gt;&lt;BR /&gt;In this way, an argument to the script can later be (optionally) provided to change the directory specification without hardcode.&lt;BR /&gt;&lt;BR /&gt;In any event:&lt;BR /&gt;&lt;BR /&gt;my $local_cwd = "/some/path";&lt;BR /&gt;chdir $local_cwd or die "Can't cd to '$local_cwd'\n";&lt;BR /&gt;$ftp-&amp;gt;get($_) for grep /\.txt/, $ftp-&amp;gt;ls ($file);&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 02 Jun 2008 22:05:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208983#M325899</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-02T22:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208984#M325900</link>
      <description>Well, I found out that I do need to also&lt;BR /&gt;use put as you stated in previsous post.&lt;BR /&gt;But I do not understand what @files is and&lt;BR /&gt;cannot find a reference on how to set it up.&lt;BR /&gt;&lt;BR /&gt;for (@files) {&lt;BR /&gt;$ftp-&amp;gt;put($_)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;I tried using ! to get a shell back and&lt;BR /&gt;ls the files that need to be put like&lt;BR /&gt;in the "get" but that didn't work and&lt;BR /&gt;am looking at Net::Cmd but do not understand&lt;BR /&gt;the syntax.</description>
      <pubDate>Tue, 03 Jun 2008 22:07:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208984#M325900</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-03T22:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208985#M325901</link>
      <description>Hi (again) Jerry:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; But I do not understand what @files is and&lt;BR /&gt;cannot find a reference on how to set it up.&lt;BR /&gt;&lt;BR /&gt;This could look something like:&lt;BR /&gt;&lt;BR /&gt;my @files = $ftp-&amp;gt;ls("/home/jerry");&lt;BR /&gt;for (@files) {&lt;BR /&gt;    $ftp-&amp;gt;put($_)&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;...which declares a list and populates it with the names of files (and directories) in '/home/jerry'.  Then, for every element of the list, a 'put' is performed using each element ($_).&lt;BR /&gt;&lt;BR /&gt;Without the overall script, these are only abstract suggestions for you.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Tue, 03 Jun 2008 22:58:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208985#M325901</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-03T22:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208986#M325902</link>
      <description>The first part with "get" works fine.&lt;BR /&gt;Here is the code:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;use Net::Netrc;&lt;BR /&gt;my $server="dom.com";&lt;BR /&gt;my $file="download/*";&lt;BR /&gt;my $pageid = "none";&lt;BR /&gt;my $pager = "/usr/local/bin/pager";&lt;BR /&gt;my $ftpid = "user1";&lt;BR /&gt;my $pass = "pass1";&lt;BR /&gt;my $local_cwd = "/opt/tools/opsdata.txt/scripts/snet.ftp/aviall/aviall.in";&lt;BR /&gt;&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3) or die (exec "$pa&lt;BR /&gt;ger $pageid \"$server: ftp cannot connect: $@\"") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;login("$ftpid","$pass") or die (exec "$pager $pageid \"ftp cannot login.\"&lt;BR /&gt;") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;binary or die (exec "$pager $pageid \"ftp failed binary mode.\"") ;&lt;BR /&gt;&lt;BR /&gt;chdir $local_cwd or die "Can't cd to '$local_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;## Get multile files if they exist.&lt;BR /&gt;$ftp-&amp;gt;get($_) for grep /\.txt/, $ftp-&amp;gt;ls ($file);&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;---------------------&lt;BR /&gt;The "put" code I cannot get working.&lt;BR /&gt;I do not think you can do an "ls" of&lt;BR /&gt;the directory from the server you are&lt;BR /&gt;initiating the ftp session from while you&lt;BR /&gt;are in an ftp session on the remote host:&lt;BR /&gt;&lt;BR /&gt;my @files = $ftp-&amp;gt;ls("/home/jerry");&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jun 2008 14:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208986#M325902</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-04T14:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208987#M325903</link>
      <description>Here is the "put" script, but it bombs out.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;use strict;&lt;BR /&gt;use warnings;&lt;BR /&gt;use Net::FTP;&lt;BR /&gt;use Net::Netrc;&lt;BR /&gt;my $server="csdev";&lt;BR /&gt;my $pageid = "none";&lt;BR /&gt;my $pager = "/usr/local/bin/pager";&lt;BR /&gt;my $ftpid = "csdev";&lt;BR /&gt;my $pass = "devdev";&lt;BR /&gt;my $remote_cwd = "/3rdparty/exostar/test/inbox"&lt;BR /&gt;my @files = ls("/opt/tools/opsdata.txt/scripts/snet.ftp/aviall/aviall.out");&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3) or die (exec "$pa&lt;BR /&gt;ger $pageid \"$server: ftp cannot connect: $@\"") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;login("$ftpid","$pass") or die (exec "$pager $pageid \"ftp cannot login.\"&lt;BR /&gt;") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;ascii or die (exec "$pager $pageid \"ftp failed binary mode.\"") ;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;## Put multile files if they exist.&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;chdir $remote_cwd or die "Can't cd to '$remote_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;for (@files) {&lt;BR /&gt;$ftp-&amp;gt;put($_);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;===============================&lt;BR /&gt;&lt;BR /&gt;Scalar found where operator expected at ../putaviall.jc.dev.pl line 33, near "-&amp;gt;&lt;BR /&gt;chdir $remote_cwd"&lt;BR /&gt;        (Missing operator before $remote_cwd?)&lt;BR /&gt;syntax error at ../putaviall.jc.dev.pl line 21, near "my "&lt;BR /&gt;Global symbol "@files" requires explicit package name at ../putaviall.jc.dev.pl&lt;BR /&gt;line 21.&lt;BR /&gt;syntax error at ../putaviall.jc.dev.pl line 33, near "-&amp;gt;chdir $remote_cwd "&lt;BR /&gt;Global symbol "@files" requires explicit package name at ../putaviall.jc.dev.pl&lt;BR /&gt;line 34.&lt;BR /&gt;Execution of ../putaviall.jc.dev.pl aborted due to compilation errors.</description>
      <pubDate>Wed, 04 Jun 2008 15:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208987#M325903</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-04T15:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208988#M325904</link>
      <description>HI (again) Jerry:&lt;BR /&gt;&lt;BR /&gt;Here's the guts of your 'put' script amended:&lt;BR /&gt;&lt;BR /&gt;my $local_cwd  = '/tmp/dummydir';&lt;BR /&gt;my $remote_cwd = '/tmp/mydummydir';&lt;BR /&gt;&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3) or&lt;BR /&gt;    die (exec "$pager $pageid \"$server: ftp cannot connect: $@\"") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;login("$ftpid","$pass") or&lt;BR /&gt;    die (exec "$pager $pageid \"ftp cannot login.\"&lt;BR /&gt;") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;ascii or&lt;BR /&gt;    die (exec "$pager $pageid \"ftp failed binary mode.\"") ;&lt;BR /&gt;&lt;BR /&gt;## Put multile files if they exist.&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;cwd($remote_cwd) or die "Can't cd to '$remote_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;chdir $local_cwd or die "Can't cd to '$local_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;my @files = $ftp-&amp;gt;ls($local_cwd) or die "Can't do 'ls'\n";&lt;BR /&gt;&lt;BR /&gt;for (@files) {&lt;BR /&gt;   $ftp-&amp;gt;put($_) if -f $_;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 04 Jun 2008 16:01:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208988#M325904</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-04T16:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208989#M325905</link>
      <description>&lt;!--!*#--&gt;Hi (again):&lt;BR /&gt;&lt;BR /&gt;My apologies!  I was burned by a bad memory.  You care absolutely correct, you cannot do $ftp-&amp;gt;ls against the local directory.&lt;BR /&gt;&lt;BR /&gt;This is easy to fix:&lt;BR /&gt;&lt;BR /&gt;my $local_cwd  = '/tmp/dummydir';&lt;BR /&gt;my $remote_cwd = '/tmp/mydummydir';&lt;BR /&gt;&lt;BR /&gt;my $ftp = Net::FTP-&amp;gt;new ($server, Timeout =&amp;gt; 9000, Debug =&amp;gt; 3) or&lt;BR /&gt;    die (exec "$pager $pageid \"$server: ftp cannot connect: $@\"") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;login("$ftpid","$pass") or&lt;BR /&gt;    die (exec "$pager $pageid \"ftp cannot login.\"&lt;BR /&gt;") ;&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;ascii or&lt;BR /&gt;    die (exec "$pager $pageid \"ftp failed binary mode.\"") ;&lt;BR /&gt;&lt;BR /&gt;## Put multile files if they exist.&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;cwd($remote_cwd) or die "Can't cd to '$remote_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;chdir $local_cwd or die "Can't cd to '$local_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;my @files = glob("*");&lt;BR /&gt;&lt;BR /&gt;for (@files) {&lt;BR /&gt;    $ftp-&amp;gt;put($_) if -f $_;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;$ftp-&amp;gt;quit;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 04 Jun 2008 16:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208989#M325905</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-04T16:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208990#M325906</link>
      <description>It basically works, but the problem is with&lt;BR /&gt;this line that is trying to "ls" the remote&lt;BR /&gt;server directory and not the local server&lt;BR /&gt;directory. Should it not be some kind of&lt;BR /&gt;local "ls" like with "chdir" in the line:&lt;BR /&gt;&lt;BR /&gt;chdir($local_cwd) or die "Can't cd to '$local_cwd'\n";&lt;BR /&gt;&lt;BR /&gt;without the "$ftp-&amp;gt;" in front of "ls" or&lt;BR /&gt;something?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is the line that is trying to do a&lt;BR /&gt;remote listing of a path that only exists&lt;BR /&gt;on the local server and the ftp output below:&lt;BR /&gt;&lt;BR /&gt;my @files = $ftp-&amp;gt;ls($local_cwd) or die "Can't do 'ls'\n";&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; CWD /3rdparty/exostar/test/inbox&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;lt;&amp;lt;&amp;lt; 250 CWD command successful.&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; PORT 10,40,167,52,214,72&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;lt;&amp;lt;&amp;lt; 200 PORT command successful.&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; NLST /opt/tools/opsdata.txt/scripts/snet.ftp/aviall&lt;BR /&gt;/aviall.out&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;lt;&amp;lt;&amp;lt; 550 /opt/tools/opsdata.txt/scripts/snet.ftp/aviall/&lt;BR /&gt;aviall.out: No such file or directory.&lt;BR /&gt;Can't do 'ls'&lt;BR /&gt;Net::FTP=GLOB(0x40012d58)&amp;gt;&amp;gt;&amp;gt; QUIT</description>
      <pubDate>Wed, 04 Jun 2008 16:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208990#M325906</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-04T16:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208991#M325907</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;...read my last post.  Again, I apologize for relying on my faulty memory :-{{&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 04 Jun 2008 16:32:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208991#M325907</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-06-04T16:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Net::FTP multiple file gets</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208992#M325908</link>
      <description>James, YOU ARE THE MAN!!&lt;BR /&gt;&lt;BR /&gt;Thank you so much. I would have never&lt;BR /&gt;figured that last part out.&lt;BR /&gt;&lt;BR /&gt;It was timming on posting. I had not seen&lt;BR /&gt;your last post yet while I was messing with&lt;BR /&gt;the code.&lt;BR /&gt;&lt;BR /&gt;Many thanks again.</description>
      <pubDate>Wed, 04 Jun 2008 18:26:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/net-ftp-multiple-file-gets/m-p/4208992#M325908</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2008-06-04T18:26:58Z</dc:date>
    </item>
  </channel>
</rss>

