<?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: script for FTP in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733081#M65892</link>
    <description>You would use "vi" editor to create the script file. For example .. (assuming you're root) ..&lt;BR /&gt;&lt;BR /&gt;# vi myscript&lt;BR /&gt;&lt;BR /&gt;..that will bring you to vi mode. And in "vi" enter your script .. (I'm using the previous posting example given..)&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;ip_address=10.10.10.10 &lt;BR /&gt;user=user &lt;BR /&gt;password=password &lt;BR /&gt;&lt;BR /&gt;ftp -n $ip_address &amp;lt;&amp;lt;-EOF &lt;BR /&gt;user $user $password &lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;When you're done save the file &lt;ESC&gt;&lt;SHIFT&gt;&amp;lt;:&amp;gt; and enter wq! and that will create file myscript. No extension is needed. Just make sure the permission of the file is executable.&lt;BR /&gt;&lt;BR /&gt;# chmod 500 myscript&lt;BR /&gt;&lt;BR /&gt;Then just run it ..&lt;BR /&gt;&lt;BR /&gt;# ./myscript&lt;/SHIFT&gt;&lt;/ESC&gt;</description>
    <pubDate>Fri, 31 May 2002 03:23:33 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-05-31T03:23:33Z</dc:date>
    <item>
      <title>script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733074#M65885</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;We are running hp 10.20&lt;BR /&gt;Is it possible to write script (file) for the FTP?&lt;BR /&gt;User&lt;BR /&gt;Pass&lt;BR /&gt;And to copy all files from current directory to another ftp server.&lt;BR /&gt;&lt;BR /&gt;where should be saved this script (location)&lt;BR /&gt;Best regard to all&lt;BR /&gt;&lt;BR /&gt;Goran&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 02:51:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733074#M65885</guid>
      <dc:creator>Goran Bulut_1</dc:creator>
      <dc:date>2002-05-29T02:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733075#M65886</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This subject comes up frequently:&lt;BR /&gt;&lt;BR /&gt;You can do a search using 'ftp script' from the search bar &amp;lt;-- or you could look at this posting:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x83e45f260cafd4118fef0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x83e45f260cafd4118fef0090279cd0f9,00.html&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;There is also some interesting information that can be found in the 'netrc' man pages. &lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;~Michael~&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 02:58:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733075#M65886</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-05-29T02:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733076#M65887</link>
      <description>Search result for ftp+script came up with these.. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/emse/bin/doc.pl/sid=604d7d7a0e4f4db81f?todo=search&amp;amp;searchcategory=ALL&amp;amp;rn=100&amp;amp;presort=rank&amp;amp;searchtext=ftp%2Bscript&amp;amp;searchcriteria=allwords&amp;amp;searchtype=SEARCH_FORUMS" target="_blank"&gt;http://us-support3.external.hp.com/emse/bin/doc.pl/sid=604d7d7a0e4f4db81f?todo=search&amp;amp;searchcategory=ALL&amp;amp;rn=100&amp;amp;presort=rank&amp;amp;searchtext=ftp%2Bscript&amp;amp;searchcriteria=allwords&amp;amp;searchtype=SEARCH_FORUMS&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope it helps ..</description>
      <pubDate>Wed, 29 May 2002 03:29:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733076#M65887</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-29T03:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733077#M65888</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Here is a small script that does what&lt;BR /&gt;you have requested:#!/bin/ksh&lt;BR /&gt;#&lt;BR /&gt;# In this script tohost is the name of the machine you want to&lt;BR /&gt;# copy files to.&lt;BR /&gt;# user is the  users name on tohost&lt;BR /&gt;# passwd is the users password on tohost&lt;BR /&gt;#&lt;BR /&gt;# Replace mput ftp*  with whatever is suitable for your use&lt;BR /&gt;# or add more ftp-commands&lt;BR /&gt;#&lt;BR /&gt;# The BIG security-issue with this method often is that the&lt;BR /&gt;# user/password is visible in a file!!!&lt;BR /&gt;# I have tried to reduce this risk here by having the user&lt;BR /&gt;# pass user/password  as arguments to the script:&lt;BR /&gt;#&lt;BR /&gt;# usage:&lt;BR /&gt;#        ftp_aut  tohost  user password&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;tohost=$1&lt;BR /&gt;USERNAME=$2&lt;BR /&gt;PASSWORD=$3&lt;BR /&gt;     (&lt;BR /&gt;     echo "&lt;BR /&gt;           open $tohost&lt;BR /&gt;           user $USERNAME $PASSWORD&lt;BR /&gt;           mput ftp*&lt;BR /&gt;           close&lt;BR /&gt;           "&lt;BR /&gt;     ) |  ftp -i -n&lt;BR /&gt;&lt;BR /&gt;echo "exit script"&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Olav&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 May 2002 05:46:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733077#M65888</guid>
      <dc:creator>Olav Baadsvik</dc:creator>
      <dc:date>2002-05-29T05:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733078#M65889</link>
      <description>Hi Goran,&lt;BR /&gt;&lt;BR /&gt;Perhaps this information is important for you,&lt;BR /&gt;please read the man pages for .netrc.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Wed, 29 May 2002 06:49:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733078#M65889</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-05-29T06:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733079#M65890</link>
      <description>this is a simple example:&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/sh&lt;BR /&gt;&lt;BR /&gt;ip_address=10.10.10.10&lt;BR /&gt;user=user&lt;BR /&gt;password=password&lt;BR /&gt;&lt;BR /&gt;ftp -n $ip_address &amp;lt;&amp;lt;-EOF&lt;BR /&gt;user $user $password&lt;BR /&gt;cd /tmp&lt;BR /&gt;lcd /tmp&lt;BR /&gt;bin&lt;BR /&gt;mput *&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Gabriele Facchini</description>
      <pubDate>Thu, 30 May 2002 05:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733079#M65890</guid>
      <dc:creator>Gabriele FACCHINI</dc:creator>
      <dc:date>2002-05-30T05:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733080#M65891</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;This shoud be my first script on Hp&lt;BR /&gt;and sorry &lt;BR /&gt;Can I use any editor to create it under #! /usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;The name "out"&lt;BR /&gt;What shoul be extension of the file.&lt;BR /&gt;sorry to all.&lt;BR /&gt;&lt;BR /&gt;best regard&lt;BR /&gt;&lt;BR /&gt;Goran</description>
      <pubDate>Fri, 31 May 2002 03:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733080#M65891</guid>
      <dc:creator>Goran Bulut_1</dc:creator>
      <dc:date>2002-05-31T03:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733081#M65892</link>
      <description>You would use "vi" editor to create the script file. For example .. (assuming you're root) ..&lt;BR /&gt;&lt;BR /&gt;# vi myscript&lt;BR /&gt;&lt;BR /&gt;..that will bring you to vi mode. And in "vi" enter your script .. (I'm using the previous posting example given..)&lt;BR /&gt;&lt;BR /&gt;#! /usr/bin/sh &lt;BR /&gt;&lt;BR /&gt;ip_address=10.10.10.10 &lt;BR /&gt;user=user &lt;BR /&gt;password=password &lt;BR /&gt;&lt;BR /&gt;ftp -n $ip_address &amp;lt;&amp;lt;-EOF &lt;BR /&gt;user $user $password &lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;When you're done save the file &lt;ESC&gt;&lt;SHIFT&gt;&amp;lt;:&amp;gt; and enter wq! and that will create file myscript. No extension is needed. Just make sure the permission of the file is executable.&lt;BR /&gt;&lt;BR /&gt;# chmod 500 myscript&lt;BR /&gt;&lt;BR /&gt;Then just run it ..&lt;BR /&gt;&lt;BR /&gt;# ./myscript&lt;/SHIFT&gt;&lt;/ESC&gt;</description>
      <pubDate>Fri, 31 May 2002 03:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733081#M65892</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-05-31T03:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733082#M65893</link>
      <description>thanks all for reply&lt;BR /&gt;&lt;BR /&gt;Goran</description>
      <pubDate>Sat, 01 Jun 2002 20:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733082#M65893</guid>
      <dc:creator>Goran Bulut_1</dc:creator>
      <dc:date>2002-06-01T20:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: script for FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733083#M65894</link>
      <description>Here's a very simple script,&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;ftp -n &lt;HOSTNAME or="" ip=""&gt; &amp;lt;&amp;lt; FTP&lt;BR /&gt;user &lt;USERNAME&gt; &lt;PASSWD&gt;&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;mput *&lt;BR /&gt;FTP&lt;BR /&gt;&lt;BR /&gt;********&lt;BR /&gt;&lt;BR /&gt; You should use prompt before using mput if you want to upload/download mulitple files. If you don't use, it will ask for your confirmation before uploading/downloading the files.&lt;/PASSWD&gt;&lt;/USERNAME&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Mon, 03 Jun 2002 16:12:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-for-ftp/m-p/2733083#M65894</guid>
      <dc:creator>Arockia Jegan</dc:creator>
      <dc:date>2002-06-03T16:12:53Z</dc:date>
    </item>
  </channel>
</rss>

