<?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 automatic FTP script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091288#M442397</link>
    <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am doing FTP with a shell script but it is not running properly.Please send me if anybody have any automatic ftp script.&lt;BR /&gt;&lt;BR /&gt;#!/usr/sbin/sh&lt;BR /&gt;ftp -i -n 10.1.1.76&lt;BR /&gt;user (username)/(password)&lt;BR /&gt;bin&lt;BR /&gt;cd /home/user home dir&lt;BR /&gt;lcd /home/dir&lt;BR /&gt;mget *.txt&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;regards,</description>
    <pubDate>Wed, 06 Feb 2008 11:20:04 GMT</pubDate>
    <dc:creator>tayal_sumit</dc:creator>
    <dc:date>2008-02-06T11:20:04Z</dc:date>
    <item>
      <title>automatic FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091288#M442397</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am doing FTP with a shell script but it is not running properly.Please send me if anybody have any automatic ftp script.&lt;BR /&gt;&lt;BR /&gt;#!/usr/sbin/sh&lt;BR /&gt;ftp -i -n 10.1.1.76&lt;BR /&gt;user (username)/(password)&lt;BR /&gt;bin&lt;BR /&gt;cd /home/user home dir&lt;BR /&gt;lcd /home/dir&lt;BR /&gt;mget *.txt&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;regards,</description>
      <pubDate>Wed, 06 Feb 2008 11:20:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091288#M442397</guid>
      <dc:creator>tayal_sumit</dc:creator>
      <dc:date>2008-02-06T11:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: automatic FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091289#M442398</link>
      <description>You got everything correct except the 'here document' codes. The commands below the ftp line must be flagged as belonging to ftp's STDIN and this is done with &amp;lt;&amp;lt; plus an ending string such as EOF. This should work OK:&lt;BR /&gt; &lt;BR /&gt;#!/usr/sbin/sh&lt;BR /&gt;&lt;BR /&gt;USER=bill&lt;BR /&gt;PW=abc123&lt;BR /&gt;ftp -v -i -n 10.1.1.76 &amp;lt;&amp;lt; EOF&lt;BR /&gt;user $USER $PW &lt;BR /&gt;bin&lt;BR /&gt;cd /home/$USER&lt;BR /&gt;lcd /home/$USER&lt;BR /&gt;mget *.txt&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt; &lt;BR /&gt;The &amp;lt;&amp;lt; EOF string says: take the following lines and feed them into ftp, then stop when EOF is found.</description>
      <pubDate>Wed, 06 Feb 2008 12:52:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091289#M442398</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-02-06T12:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: automatic FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091290#M442399</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;This will not work.  One way using this technique is:&lt;BR /&gt;&lt;BR /&gt;{ echo "open 10.1.1.76&lt;BR /&gt;        user theuser thepassword&lt;BR /&gt;        type binary&lt;BR /&gt;        cd   /home/userhomedir&lt;BR /&gt;        lcd  /home/dir&lt;BR /&gt;        mget *.txt&lt;BR /&gt;        bye"&lt;BR /&gt;} | ftp -in&lt;BR /&gt;&lt;BR /&gt;A more secure way than putting an account password into a script (although still not the most secure way) is to use the '.netrc' file.  See the manpages for 'netrc(4)'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2008 13:08:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091290#M442399</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-02-06T13:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: automatic FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091291#M442400</link>
      <description>&lt;!--!*#--&gt;cd /home/dir&lt;BR /&gt;wget "ftp://${user}:${pass}@10.1.1.76/home/user_home_dir/*.txt"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/wget/wget.html" target="_blank"&gt;http://www.gnu.org/software/wget/wget.html&lt;/A&gt;</description>
      <pubDate>Wed, 06 Feb 2008 15:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091291#M442400</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-02-06T15:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: automatic FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091292#M442401</link>
      <description>Hi Bill,&lt;BR /&gt;&lt;BR /&gt;I have tried your script it's working nice.&lt;BR /&gt;&lt;BR /&gt;Keep up the good work.&lt;BR /&gt;&lt;BR /&gt;Thank you very much&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Sumit</description>
      <pubDate>Thu, 07 Feb 2008 06:50:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automatic-ftp-script/m-p/5091292#M442401</guid>
      <dc:creator>tayal_sumit</dc:creator>
      <dc:date>2008-02-07T06:50:54Z</dc:date>
    </item>
  </channel>
</rss>

