<?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 shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651579#M46152</link>
    <description>Hi Wilfred, &lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;ftp -n server_name_or_ip &amp;lt;&lt;ENDFTP&gt;&lt;/ENDFTP&gt;user user_name password&lt;BR /&gt;bin&lt;BR /&gt;ascii&lt;BR /&gt;put ...&lt;BR /&gt;get ..&lt;BR /&gt;...&lt;BR /&gt;other ftp commands&lt;BR /&gt;...&lt;BR /&gt;..&lt;BR /&gt;bye&lt;BR /&gt;EndFTP&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Jan 2002 02:07:45 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2002-01-24T02:07:45Z</dc:date>
    <item>
      <title>ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651576#M46149</link>
      <description>Does any know how to ftp in a shell script?&lt;BR /&gt;I tried "user account password" and &lt;BR /&gt;"USER &amp;amp; PASS".  But I was still prompted&lt;BR /&gt;for a password. &lt;BR /&gt;&lt;BR /&gt;I am ftping to a windows server from a HPUX server.</description>
      <pubDate>Thu, 24 Jan 2002 01:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651576#M46149</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-01-24T01:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651577#M46150</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can try to use "ftp -i -n" instead. &lt;BR /&gt;If can't, put all the commands in a file and use "ftp -i -n &amp;lt; file", eg.&lt;BR /&gt;&lt;BR /&gt;#file&lt;BR /&gt;open xxx.xxx.xxx.xxx&lt;BR /&gt;user USER PASSWORD&lt;BR /&gt;get file&lt;BR /&gt;bye&lt;BR /&gt;&lt;BR /&gt;Then in the shell script, put this line:&lt;BR /&gt;ftp -i -n &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;Kenny.</description>
      <pubDate>Thu, 24 Jan 2002 01:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651577#M46150</guid>
      <dc:creator>Kenny Chau</dc:creator>
      <dc:date>2002-01-24T01:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651578#M46151</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I had previously written this script for my user for non-interactive file transfers:&lt;BR /&gt;&lt;BR /&gt;=========================================&lt;BR /&gt;#!/sbin/sh&lt;BR /&gt;ftp -i -n FTP_SERVER &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;user &lt;USERID&gt; &lt;PASSWD&gt;&lt;BR /&gt;put &lt;FILENAME&gt;&lt;BR /&gt;EOF&lt;BR /&gt;=========================================&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;/FILENAME&gt;&lt;/PASSWD&gt;&lt;/USERID&gt;</description>
      <pubDate>Thu, 24 Jan 2002 01:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651578#M46151</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-24T01:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651579#M46152</link>
      <description>Hi Wilfred, &lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;ftp -n server_name_or_ip &amp;lt;&lt;ENDFTP&gt;&lt;/ENDFTP&gt;user user_name password&lt;BR /&gt;bin&lt;BR /&gt;ascii&lt;BR /&gt;put ...&lt;BR /&gt;get ..&lt;BR /&gt;...&lt;BR /&gt;other ftp commands&lt;BR /&gt;...&lt;BR /&gt;..&lt;BR /&gt;bye&lt;BR /&gt;EndFTP&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jan 2002 02:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651579#M46152</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-01-24T02:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651580#M46153</link>
      <description>Wilfred,&lt;BR /&gt;&lt;BR /&gt;The best ftp scripting I've seen, is something that Clay showed us a while back:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc88106295e00d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc88106295e00d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 24 Jan 2002 02:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651580#M46153</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-24T02:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651581#M46154</link>
      <description>I have tried this already..&lt;BR /&gt;ftp -vin $rhost &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;user &lt;USERID&gt; &lt;PASSWD&gt;&lt;BR /&gt;cd $scrdir&lt;BR /&gt;lcd $destdir &lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;But it keeps asking me for a password.&lt;BR /&gt;&lt;BR /&gt;I also tried,&lt;BR /&gt;&lt;BR /&gt;ftp -vin $rhost &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;user &lt;USERID&gt;&lt;BR /&gt;pass &lt;PASSWD&gt;&lt;BR /&gt;cd $scrdir&lt;BR /&gt;lcd $destdir &lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Also failed...probably the problem is the other end...an NT server&lt;/PASSWD&gt;&lt;/USERID&gt;&lt;/PASSWD&gt;&lt;/USERID&gt;</description>
      <pubDate>Thu, 24 Jan 2002 04:20:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651581#M46154</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-01-24T04:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651582#M46155</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;try&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ftp -i -n &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;open host&lt;BR /&gt; user login passwd&lt;BR /&gt;pwd&lt;BR /&gt;close&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;It works for me&lt;BR /&gt;&lt;BR /&gt;           Steve Steel</description>
      <pubDate>Thu, 24 Jan 2002 10:09:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651582#M46155</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2002-01-24T10:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651583#M46156</link>
      <description>Hi Wilfred&lt;BR /&gt;&lt;BR /&gt;The easiest way to send USER and PASS from script is .netrc file in users home directory. &lt;BR /&gt;#cd &lt;BR /&gt;#echo 'machine ftp.xxxx.com login USER password PASS' &amp;gt;&amp;gt; .netrc&lt;BR /&gt;#chmod 600 .netrc&lt;BR /&gt;#ftp ftp.xxxx.com &lt;BR /&gt;&lt;BR /&gt;Sure Clay's way to write ftp scripts with perl allows more abiliies to trap errors and stuff like that. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jan 2002 13:33:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651583#M46156</guid>
      <dc:creator>Andrei Petrov</dc:creator>
      <dc:date>2002-01-24T13:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651584#M46157</link>
      <description>Wilfred,&lt;BR /&gt;&lt;BR /&gt;You can't FTP to an NT server, or any M$ system unless that NT system is running an FTP daemon. You'll find some ftp server stuff here for M$ products:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.webattack.com/Freeware/server/fwftpserver.shtml" target="_blank"&gt;http://www.webattack.com/Freeware/server/fwftpserver.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Thu, 24 Jan 2002 13:38:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651584#M46157</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-01-24T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651585#M46158</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you are able to see the prompt for a password, then your FTP connection is likely to be established.&lt;BR /&gt;&lt;BR /&gt;What FTP daemon program are you using ie. Microsoft FTP service that comes with IIS (Internet Information Server)?&lt;BR /&gt;&lt;BR /&gt;Or, are you using other third-party FTP daemon programs?&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 24 Jan 2002 13:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651585#M46158</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-01-24T13:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: ftp in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651586#M46159</link>
      <description>My problem has been resolved. Thanks all.</description>
      <pubDate>Thu, 24 Jan 2002 22:16:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-in-shell-script/m-p/2651586#M46159</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2002-01-24T22:16:30Z</dc:date>
    </item>
  </channel>
</rss>

