<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460956#M848764</link>
    <description>Thank you all for the responses.  They were a big help.  I especially like the encryption...nice touch!!!</description>
    <pubDate>Thu, 13 Jan 2005 17:11:39 GMT</pubDate>
    <dc:creator>TheJuiceman</dc:creator>
    <dc:date>2005-01-13T17:11:39Z</dc:date>
    <item>
      <title>FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460947#M848755</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I want to copy a file from a HP-UX server to a Netware server inside a script.  I thought maybe I could do this with "ftp", but am uncertain how to string the command together.  Any suggestions?  Thanks.&lt;BR /&gt;&lt;BR /&gt;Bob</description>
      <pubDate>Tue, 11 Jan 2005 22:36:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460947#M848755</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2005-01-11T22:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460948#M848756</link>
      <description>#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;ftp -n ipaddress &amp;lt;&amp;lt; !&lt;BR /&gt;user &lt;USERNAME&gt; &lt;PASSWORD&gt;&lt;BR /&gt;&lt;COMMANDS&gt;....&lt;BR /&gt;bye&lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;&lt;/COMMANDS&gt;&lt;/PASSWORD&gt;&lt;/USERNAME&gt;</description>
      <pubDate>Tue, 11 Jan 2005 23:00:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460948#M848756</guid>
      <dc:creator>bhoopathi_1</dc:creator>
      <dc:date>2005-01-11T23:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460949#M848757</link>
      <description>Thanks,&lt;BR /&gt;&lt;BR /&gt;However, I cannot get it to pass the user information.  Any thoughts?</description>
      <pubDate>Wed, 12 Jan 2005 00:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460949#M848757</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2005-01-12T00:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460950#M848758</link>
      <description>Please post the script text you used.&lt;BR /&gt;&lt;BR /&gt;You can't just cut and paste his script as posted.&lt;BR /&gt;&lt;BR /&gt;Here is a working example.&lt;BR /&gt;&lt;BR /&gt;As bad a security as this is, set two variables before executing this code:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;USERNAME=userid&lt;BR /&gt;PASSWORD=actualpassword&lt;BR /&gt;&lt;BR /&gt;export USERNAME&lt;BR /&gt;export PASSWORD&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ftp -nv ${SERVER} &amp;lt;&amp;lt; FTPEOF &amp;gt; /tmp/temp_log.$$&lt;BR /&gt;user ${USERNAME} ${PASSWORD}&lt;BR /&gt;#Get file&lt;BR /&gt;get $1&lt;BR /&gt;quit&lt;BR /&gt;FTPEOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If this script does not work, make sure the ftpd server is working on the Netware Server.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 12 Jan 2005 01:00:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460950#M848758</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-01-12T01:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460951#M848759</link>
      <description>If you want to handle the password securely, then you can encrypt the password. &lt;BR /&gt;&lt;BR /&gt;$ echo &lt;FTP password=""&gt; |crypt pass &amp;gt;/home/crypted&lt;BR /&gt;&lt;BR /&gt;then you can call this in the script&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;USERNAME=username&lt;BR /&gt;PASSWORD=`crypt pass &lt;/FTP&gt;export USERNAME PASSWORD&lt;BR /&gt;&lt;BR /&gt;ftp -n ipaddress &amp;lt;&amp;lt; !&lt;BR /&gt;user $USERNAME $PASSWORD&lt;BR /&gt;commands.......&lt;BR /&gt;bye&lt;BR /&gt;!&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jan 2005 01:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460951#M848759</guid>
      <dc:creator>bhoopathi_1</dc:creator>
      <dc:date>2005-01-12T01:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460952#M848760</link>
      <description>this is my script.&lt;BR /&gt;USERNAME=someone&lt;BR /&gt;PASSWORD=passwd&lt;BR /&gt;WORKSTATION=IP OR HOST&lt;BR /&gt;&lt;BR /&gt;ftp -nv ${WORKSTATION} &amp;lt;&amp;lt; FTPEOF &amp;gt; /tmp/temp_log &lt;BR /&gt;user ${USERNAME} ${PASSWORD} &lt;BR /&gt;#Get file &lt;BR /&gt;get $1 &lt;BR /&gt;quit &lt;BR /&gt;FTPEOF&lt;BR /&gt;&lt;BR /&gt;let try .&lt;BR /&gt;tienna</description>
      <pubDate>Wed, 12 Jan 2005 03:24:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460952#M848760</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-01-12T03:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460953#M848761</link>
      <description>this is my script.&lt;BR /&gt;USERNAME=someone&lt;BR /&gt;PASSWORD=passwd&lt;BR /&gt;WORKSTATION=IP OR HOST&lt;BR /&gt;&lt;BR /&gt;ftp -nv ${WORKSTATION} &amp;lt;&amp;lt; FTPEOF &amp;gt; /tmp/temp_log &lt;BR /&gt;user ${USERNAME} ${PASSWORD} &lt;BR /&gt;#Get file &lt;BR /&gt;put file&lt;BR /&gt;quit &lt;BR /&gt;FTPEOF&lt;BR /&gt;&lt;BR /&gt;let try .&lt;BR /&gt;tienna</description>
      <pubDate>Wed, 12 Jan 2005 03:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460953#M848761</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-01-12T03:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460954#M848762</link>
      <description>Hi Bobby,&lt;BR /&gt;&lt;BR /&gt;creat file with ftp command a files you want to create and launch ftp with i n v options :&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/bin/ftp -i -n -v  &amp;lt; /home/sladky/CRON_MSD/ftp_sundance1.txt&lt;BR /&gt;&lt;BR /&gt;cat ftp_sundance1.txt&lt;BR /&gt;&lt;BR /&gt; open 10.32.113.177&lt;BR /&gt; user user1 passwd&lt;BR /&gt; bin&lt;BR /&gt; hash&lt;BR /&gt; prompt off&lt;BR /&gt; cd IN2&lt;BR /&gt; dir&lt;BR /&gt; mput -.txt&lt;BR /&gt; bye&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rgds Jan&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jan 2005 04:37:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460954#M848762</guid>
      <dc:creator>Jan Sladky</dc:creator>
      <dc:date>2005-01-12T04:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460955#M848763</link>
      <description>I just got this from the forum a couple days ago.  It works great as a script.  I run it in a cron.&lt;BR /&gt;&lt;BR /&gt;#/!/sbin/sh&lt;BR /&gt;#change these parameter for your environment&lt;BR /&gt;host_ip=172.21.xx.xxx&lt;BR /&gt;user_name=xxxxxx&lt;BR /&gt;pass_word=xxxxxx&lt;BR /&gt;dir=/home/sysadmin/crhcmax2&lt;BR /&gt;ldir=/home/sysadmin&lt;BR /&gt;Date=`date +%m%d`&lt;BR /&gt;LOG_NM=/home/sysadmin/ftpcrhcmax1.log&lt;BR /&gt;file_name=crhcmax2${Date}.html&lt;BR /&gt;mail_file=*.mail.crhcmax2&lt;BR /&gt;&lt;BR /&gt;ftp -nv $host_ip &amp;lt;&amp;lt; FTPEOF &amp;gt; $LOG_NM&lt;BR /&gt;user $user_name $pass_word&lt;BR /&gt;cd $dir&lt;BR /&gt;lcd $ldir&lt;BR /&gt;put $file_name&lt;BR /&gt;mput $mail_file&lt;BR /&gt;quit&lt;BR /&gt;FTPEOF</description>
      <pubDate>Wed, 12 Jan 2005 07:33:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460955#M848763</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2005-01-12T07:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460956#M848764</link>
      <description>Thank you all for the responses.  They were a big help.  I especially like the encryption...nice touch!!!</description>
      <pubDate>Thu, 13 Jan 2005 17:11:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp/m-p/3460956#M848764</guid>
      <dc:creator>TheJuiceman</dc:creator>
      <dc:date>2005-01-13T17:11:39Z</dc:date>
    </item>
  </channel>
</rss>

