<?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 automaticly on HPUX11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680888#M53008</link>
    <description>A much better and cleaner way to get/put files is to use Perl; I never do this stuff in the shell anymore because with Perl the error checking is built right in.&lt;BR /&gt;&lt;BR /&gt;It first logs you in to a remote server, change the remote host, user, and password to suit your needs. It then does a cwd to /tmp and puts ftp in 'binary mode'. It then reads the command line for filenames to send. It will try each one up to 5 times. The beauty of doing this in perl is that the error checking is built right in. You will need to download and install the Net::FTP module from &lt;A href="http://www.perl.org/CPAN" target="_blank"&gt;http://www.perl.org/CPAN&lt;/A&gt; but after that you are done. I never bother trying to do this stuff in the shell anymore because this is so much easier. &lt;BR /&gt;&lt;BR /&gt;Ig you want to change this to a 'get' simply replace the put with a get in the perl script and you are done.&lt;BR /&gt;&lt;BR /&gt;P.S. If you need to punch through a proxy server, simply supply a 3rd argument to the login subroutine and it will be just like you typed the account ftp command yourself. &lt;BR /&gt;&lt;BR /&gt;Regards, Clay  &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;</description>
    <pubDate>Tue, 12 Mar 2002 02:16:20 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2002-03-12T02:16:20Z</dc:date>
    <item>
      <title>Ftp automaticly on HPUX11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680886#M53006</link>
      <description>How can I use Ftp to another host automaticly?&lt;BR /&gt;I had set the .netrc, but it just allow to log into the remote host without supplying your remote login name and password.&lt;BR /&gt;I want to more function about put files automaticly. &lt;BR /&gt;pls help ,tks</description>
      <pubDate>Tue, 12 Mar 2002 01:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680886#M53006</guid>
      <dc:creator>Romeo_Lou</dc:creator>
      <dc:date>2002-03-12T01:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp automaticly on HPUX11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680887#M53007</link>
      <description>You can use ftp -i -n &amp;lt; file.&lt;BR /&gt;&lt;BR /&gt;"file" will contain:&lt;BR /&gt;&lt;BR /&gt;open &lt;IP address=""&gt;&lt;BR /&gt;user &lt;LOGIN&gt; &lt;PASSWORD&gt;&lt;BR /&gt;commands&lt;BR /&gt;commands&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;You can put this to your cron job.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kenny.&lt;/PASSWORD&gt;&lt;/LOGIN&gt;&lt;/IP&gt;</description>
      <pubDate>Tue, 12 Mar 2002 01:55:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680887#M53007</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2002-03-12T01:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp automaticly on HPUX11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680888#M53008</link>
      <description>A much better and cleaner way to get/put files is to use Perl; I never do this stuff in the shell anymore because with Perl the error checking is built right in.&lt;BR /&gt;&lt;BR /&gt;It first logs you in to a remote server, change the remote host, user, and password to suit your needs. It then does a cwd to /tmp and puts ftp in 'binary mode'. It then reads the command line for filenames to send. It will try each one up to 5 times. The beauty of doing this in perl is that the error checking is built right in. You will need to download and install the Net::FTP module from &lt;A href="http://www.perl.org/CPAN" target="_blank"&gt;http://www.perl.org/CPAN&lt;/A&gt; but after that you are done. I never bother trying to do this stuff in the shell anymore because this is so much easier. &lt;BR /&gt;&lt;BR /&gt;Ig you want to change this to a 'get' simply replace the put with a get in the perl script and you are done.&lt;BR /&gt;&lt;BR /&gt;P.S. If you need to punch through a proxy server, simply supply a 3rd argument to the login subroutine and it will be just like you typed the account ftp command yourself. &lt;BR /&gt;&lt;BR /&gt;Regards, Clay  &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2002 02:16:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680888#M53008</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-03-12T02:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp automaticly on HPUX11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680889#M53009</link>
      <description>Create a text file as follows: &lt;BR /&gt;open hostname &lt;BR /&gt;user username password &lt;BR /&gt;&lt;INSERT any="" ftp="" commands="" here=""&gt; &lt;BR /&gt;bye &lt;BR /&gt;&lt;BR /&gt;Run the ftp command as follows: &lt;BR /&gt;ftp -i -n &lt;FILENAME&gt;&lt;/FILENAME&gt;&lt;BR /&gt;For example, if you want to transfer files from a host called fred to your &lt;BR /&gt;system. The files need to be transferred in binary mode and the username for &lt;BR /&gt;logging into fred is myuser with a password of qwerty1. The files are located &lt;BR /&gt;in /home and have an extension of .txt The files will be transferred to /tmp on &lt;BR /&gt;your system. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Create a text file called ftp.txt with the following lines: &lt;BR /&gt;&lt;BR /&gt;open fred&lt;BR /&gt;user myuser qwerty1 &lt;BR /&gt;binary &lt;BR /&gt;mget /data/*.txt /tmp/*.txt &lt;BR /&gt;bye &lt;BR /&gt;&lt;BR /&gt;Run the ftp command as follows: &lt;BR /&gt;&lt;BR /&gt;ftp -i -n &lt;FTP.TXT&gt;&lt;/FTP.TXT&gt;&lt;BR /&gt;If you want to do automatically you can use 'cron' or 'at' to do when convenient to you.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael&lt;BR /&gt;&lt;/INSERT&gt;</description>
      <pubDate>Tue, 12 Mar 2002 02:16:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680889#M53009</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-03-12T02:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Ftp automaticly on HPUX11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680890#M53010</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this link,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/cki/bin/doc.pl/sid=52e138490fa80f7185/screen=ckiDisplayDocument?docId=200000054497865" target="_blank"&gt;http://us-support3.external.hp.com/cki/bin/doc.pl/sid=52e138490fa80f7185/screen=ckiDisplayDocument?docId=200000054497865&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Her eare some samples from forum answers,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfbc0854994d9d4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfbc0854994d9d4118fef0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x284668c57f64d4118fee0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x284668c57f64d4118fee0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2002 03:11:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-automaticly-on-hpux11/m-p/2680890#M53010</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-03-12T03:11:18Z</dc:date>
    </item>
  </channel>
</rss>

