<?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: ftp script help in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879138#M99004</link>
    <description>&amp;gt;lawrenzo what does: the "1,$" mean?&lt;BR /&gt;&lt;BR /&gt;You should probably remove it since that's the default.  And you would probably understand it better. :-) (For vi/ex, you can use % for that.)</description>
    <pubDate>Thu, 12 Oct 2006 17:56:36 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-10-12T17:56:36Z</dc:date>
    <item>
      <title>ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879131#M98997</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am writing an ftp script for the first time .......&lt;BR /&gt;&lt;BR /&gt;I am familiar with the syntax ie&lt;BR /&gt;&lt;BR /&gt;ftp -v -i -n &lt;HOST&gt; &amp;lt;&lt;/HOST&gt;</description>
      <pubDate>Thu, 12 Oct 2006 08:50:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879131#M98997</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2006-10-12T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879132#M98998</link>
      <description>Chris,&lt;BR /&gt;the way I see it:&lt;BR /&gt;&lt;BR /&gt;1. To check you have all the info of the file, get a list of the directory you are ftping, then ftp the files and compare the size of the files against the dir listing.&lt;BR /&gt;&lt;BR /&gt;That assumes you can't get the source system to generate an index file with checksum of all the individual files, which would act as a marker that all the files had been generated on the source - clear to start ftp.&lt;BR /&gt;You could then use the checksum file to compare checksums.&lt;BR /&gt;&lt;BR /&gt;Header/trailer records could be an alternative.&lt;BR /&gt;&lt;BR /&gt;2. use "get abc _abc"&lt;BR /&gt;&lt;BR /&gt;then after comming out of the ftp part of the script move _abc to abc&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What do you think ?</description>
      <pubDate>Thu, 12 Oct 2006 09:14:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879132#M98998</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-12T09:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879133#M98999</link>
      <description>good idea however I am putting the files to a windows box then moving to an archive dir on the unix box.&lt;BR /&gt;&lt;BR /&gt;the files are _abc when ftp puts to the windows box then rename _abc abc on the windows box so another program can then transfer to a server else where.&lt;BR /&gt;&lt;BR /&gt;on the unix box then mv the abc to /archive.&lt;BR /&gt;&lt;BR /&gt;I have an idea where I list the files on the unix server and create a files.lst.&lt;BR /&gt;&lt;BR /&gt;files ftp over then ftp the files.lst then run a program on the windows server to xref _abc with files.lst. &lt;BR /&gt;&lt;BR /&gt;once verified mv files within files.lst to archive.&lt;BR /&gt;&lt;BR /&gt;a bit of a mess but we are using an sftp server for transfering data to a company not associated with the company I work for.&lt;BR /&gt;&lt;BR /&gt;is there a way I can reference files.lst so to ftp the files in that list?&lt;BR /&gt;&lt;BR /&gt;Chris.</description>
      <pubDate>Thu, 12 Oct 2006 09:32:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879133#M98999</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2006-10-12T09:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879134#M99000</link>
      <description>Chris,&lt;BR /&gt;best way for referencing is to do a dynamic ftp script:&lt;BR /&gt;echo "ftp -v -i -n &lt;HOST&gt; &amp;lt; ftper.sh&lt;BR /&gt;echo "username xxxxx xxxx" &amp;gt;&amp;gt;ftper.sh&lt;BR /&gt;# prefix each file with "get "&lt;BR /&gt;sed "1,$ s/^/get /" files.lst &amp;gt; files.dat&lt;BR /&gt;cat files.dat &amp;gt;&amp;gt; ftper.sh&lt;BR /&gt;echo "quit" &amp;gt;&amp;gt; ftper.sh&lt;BR /&gt;echo "!EOF" &amp;gt;&amp;gt; ftper.sh&lt;BR /&gt;chmod 777 ftper.sh&lt;BR /&gt;./ftper.sh&lt;/HOST&gt;</description>
      <pubDate>Thu, 12 Oct 2006 09:40:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879134#M99000</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-12T09:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879135#M99001</link>
      <description>ok Thanks Peter, I will give this a wizz and let you know how I got on!&lt;BR /&gt;&lt;BR /&gt;Chris &lt;BR /&gt;&lt;BR /&gt;&amp;lt;(+_+)&amp;gt;</description>
      <pubDate>Thu, 12 Oct 2006 09:46:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879135#M99001</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2006-10-12T09:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879136#M99002</link>
      <description>one thing so I understand the syntax etc what does:&lt;BR /&gt;&lt;BR /&gt;sed "1,$ s/^/get /" files.lst &amp;gt; files.dat&lt;BR /&gt;&lt;BR /&gt;the "1,$" mean?  I get the s/^ is the start of the line - does it mean from beginning to end of file?&lt;BR /&gt;&lt;BR /&gt;cheers</description>
      <pubDate>Thu, 12 Oct 2006 09:52:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879136#M99002</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2006-10-12T09:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879137#M99003</link>
      <description>Chris,&lt;BR /&gt;yes, 1 to last line&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Oct 2006 09:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879137#M99003</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-12T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script help</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879138#M99004</link>
      <description>&amp;gt;lawrenzo what does: the "1,$" mean?&lt;BR /&gt;&lt;BR /&gt;You should probably remove it since that's the default.  And you would probably understand it better. :-) (For vi/ex, you can use % for that.)</description>
      <pubDate>Thu, 12 Oct 2006 17:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ftp-script-help/m-p/3879138#M99004</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-10-12T17:56:36Z</dc:date>
    </item>
  </channel>
</rss>

