<?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 FTP Arguments too long error message. in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282091#M34121</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I attempted to FTP approx 2000 files with the filenames shown below. However, I obtained the error msg "Arguments too long error message." at the FTP prompt. &lt;BR /&gt;&lt;BR /&gt;$ ls ./nortel-bss-v16-input-NetworkRails&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-20:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-21:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-22:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-23:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;danny@dimebag ~/nortel-bss-v16-input-NetworkRails $ ftp 9.127.97.209&lt;BR /&gt;Connected to 9.XXX.XX.XXX (9.XXX.XX.XXX).&lt;BR /&gt;220 9.XXX.XX.XXX FTP server ready.&lt;BR /&gt;Name (9.XXX.XX.XXX:danny): danny&lt;BR /&gt;504 AUTH SSL not supported.&lt;BR /&gt;SSL not available&lt;BR /&gt;331 Password required for danny.&lt;BR /&gt;Password:&lt;BR /&gt;230 User danny logged in.&lt;BR /&gt;Remote system type is UNIX.&lt;BR /&gt;Using binary mode to transfer files.&lt;BR /&gt;ftp&amp;gt; cd /LOCAL/nortel-bss-v16/VS&lt;BR /&gt;250 CWD command successful.&lt;BR /&gt;ftp&amp;gt; prompt&lt;BR /&gt;Interactive mode off.&lt;BR /&gt;ftp&amp;gt; mput *.lif&lt;BR /&gt;Arguments too long&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;&lt;BR /&gt;May I know how can I resolve this error ? &lt;BR /&gt;&lt;BR /&gt;Is there a way that I could this with find? If so, I'd really appreciate it if anyone could show me how it's done. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Danny</description>
    <pubDate>Tue, 07 Oct 2008 10:12:14 GMT</pubDate>
    <dc:creator>Danny Fang</dc:creator>
    <dc:date>2008-10-07T10:12:14Z</dc:date>
    <item>
      <title>FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282091#M34121</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I attempted to FTP approx 2000 files with the filenames shown below. However, I obtained the error msg "Arguments too long error message." at the FTP prompt. &lt;BR /&gt;&lt;BR /&gt;$ ls ./nortel-bss-v16-input-NetworkRails&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-20:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-21:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-22:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;TRZ-#-TRZ-#-002-#-raw-#-027-#-OFS-#-30Jan2006-#-23:00-#-J-#-TRZ-#-A-#-S.lif&lt;BR /&gt;danny@dimebag ~/nortel-bss-v16-input-NetworkRails $ ftp 9.127.97.209&lt;BR /&gt;Connected to 9.XXX.XX.XXX (9.XXX.XX.XXX).&lt;BR /&gt;220 9.XXX.XX.XXX FTP server ready.&lt;BR /&gt;Name (9.XXX.XX.XXX:danny): danny&lt;BR /&gt;504 AUTH SSL not supported.&lt;BR /&gt;SSL not available&lt;BR /&gt;331 Password required for danny.&lt;BR /&gt;Password:&lt;BR /&gt;230 User danny logged in.&lt;BR /&gt;Remote system type is UNIX.&lt;BR /&gt;Using binary mode to transfer files.&lt;BR /&gt;ftp&amp;gt; cd /LOCAL/nortel-bss-v16/VS&lt;BR /&gt;250 CWD command successful.&lt;BR /&gt;ftp&amp;gt; prompt&lt;BR /&gt;Interactive mode off.&lt;BR /&gt;ftp&amp;gt; mput *.lif&lt;BR /&gt;Arguments too long&lt;BR /&gt;ftp&amp;gt;&lt;BR /&gt;&lt;BR /&gt;May I know how can I resolve this error ? &lt;BR /&gt;&lt;BR /&gt;Is there a way that I could this with find? If so, I'd really appreciate it if anyone could show me how it's done. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Danny</description>
      <pubDate>Tue, 07 Oct 2008 10:12:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282091#M34121</guid>
      <dc:creator>Danny Fang</dc:creator>
      <dc:date>2008-10-07T10:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282092#M34122</link>
      <description>That seems to be a _very_ lame FTP client.&lt;BR /&gt;&lt;BR /&gt;If you have interactive access to the remote&lt;BR /&gt;system, it'd probably be easier to collect&lt;BR /&gt;all the files using "tar"+gzip (or bzip2) (or&lt;BR /&gt;Zip, or something), then use FTP to move the&lt;BR /&gt;single archive file, and finally unpack the&lt;BR /&gt;archive on the remote system.  (Compressing&lt;BR /&gt;the data using gzip/bzip2 or Zip can save&lt;BR /&gt;time by making the FTP transfer faster, too,&lt;BR /&gt;if the CPUs are faster than the network.)&lt;BR /&gt;&lt;BR /&gt;Does "man ftp" suggest any clever&lt;BR /&gt;alternatives to "mput *" (like getting a list&lt;BR /&gt;of files from a file)?  Otherwise, I see a&lt;BR /&gt;relatively ugly shell script in your future.</description>
      <pubDate>Tue, 07 Oct 2008 13:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282092#M34122</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-07T13:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282093#M34123</link>
      <description>HI Steven,&lt;BR /&gt;&lt;BR /&gt;i fact, i had thought about bundling the entire list of files into a tar bundle and compressing them before transferring the single tar-bundle. However, the disk space posed an issue. That's the reason for me asking about transferring the multiple individual files. &lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;Danny</description>
      <pubDate>Tue, 07 Oct 2008 15:22:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282093#M34123</guid>
      <dc:creator>Danny Fang</dc:creator>
      <dc:date>2008-10-07T15:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282094#M34124</link>
      <description>&amp;gt; However, the disk space posed an issue.&lt;BR /&gt;&lt;BR /&gt;An "issue"?  Is that anything like a problem?&lt;BR /&gt;&lt;BR /&gt;How big are the files?  How compressible are&lt;BR /&gt;they?  How much free disk space do you have?&lt;BR /&gt;&lt;BR /&gt;I don't do much with Linux these days.  There&lt;BR /&gt;could be a less stupid FTP client out there,&lt;BR /&gt;too.</description>
      <pubDate>Tue, 07 Oct 2008 18:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282094#M34124</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-07T18:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282095#M34125</link>
      <description>Hi Danny:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; mput *.lif&lt;BR /&gt;Arguments too long&lt;BR /&gt;&lt;BR /&gt;This 'glob'bing (as it is called) has limitations.  You can see the limit of the array that holds the expansion of all the names and their cumulative length with:&lt;BR /&gt;&lt;BR /&gt;# getconf ARG_MAX&lt;BR /&gt;&lt;BR /&gt;That said, you could break up the 'mput' into pieces like:&lt;BR /&gt;&lt;BR /&gt;mput [a-f]*.lif&lt;BR /&gt;mput [g-n]*.lif&lt;BR /&gt;&lt;BR /&gt;...etc. or you might use 'find' and pipe its output to an FTP shell script.  As Steven suggested, too, and you agreed, using 'tar' to first bundle the files and then to FTP that bundled archive is always an option.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Oct 2008 21:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282095#M34125</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-10-07T21:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282096#M34126</link>
      <description>Another method is to use netcat and tar to stream the files from one system to another across the network&lt;BR /&gt;&lt;BR /&gt;move data from machine a to machine b&lt;BR /&gt;&lt;BR /&gt;on machine a&lt;BR /&gt;&lt;BR /&gt;# cd /path&lt;BR /&gt;# tar -cf - . | nc -w 10 -l -p 5432&lt;BR /&gt;&lt;BR /&gt;on machine b&lt;BR /&gt;&lt;BR /&gt;# cd /path&lt;BR /&gt;# nc -w 5 a.example.com 5432 | tar -xvf -&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;the command sets up a tar process on machine a that waits for a tcp connection on port 5432. When a client (machine b) connects, tar simply sends all the data through that tcp port. No temporary files are required. On machine b, another tar process reads from the network via netcat, writing the data to the disks as it streams over the network&lt;BR /&gt;&lt;BR /&gt;Some distributions the command is nc, others it's netcat, if you have a firewall use an open port, netcat doesn't care what port number as long as it's the same on both ends&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Oct 2008 03:36:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282096#M34126</guid>
      <dc:creator>Jimmy Vance</dc:creator>
      <dc:date>2008-10-08T03:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: FTP Arguments too long error message.</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282097#M34127</link>
      <description>&amp;gt; on machine b &lt;BR /&gt;&lt;BR /&gt;Of course, if you can log into machine b&lt;BR /&gt;using rsh or ssh, then you can do the work&lt;BR /&gt;without dragging netcat into the picture.&lt;BR /&gt;&lt;BR /&gt;And, in any such pipeline, it could be wise&lt;BR /&gt;to throw in a gzip or bzip2 (at each end) to&lt;BR /&gt;trade CPU consumption for network&lt;BR /&gt;consumption.</description>
      <pubDate>Wed, 08 Oct 2008 04:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-arguments-too-long-error-message/m-p/4282097#M34127</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-08T04:14:49Z</dc:date>
    </item>
  </channel>
</rss>

