<?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 SCRIPT in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765947#M260359</link>
    <description>strange...... I was replying in another thread.. but it was removed.&lt;BR /&gt;&lt;BR /&gt;Solution:&lt;BR /&gt;&lt;BR /&gt;ftp -in &lt;REMOTE-SERVER&gt; &amp;lt;&amp;lt;-!&lt;BR /&gt;user &lt;USER&gt; &lt;PASSWD&gt;&lt;BR /&gt;commands&lt;BR /&gt;bye&lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;will work.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;/PASSWD&gt;&lt;/USER&gt;&lt;/REMOTE-SERVER&gt;</description>
    <pubDate>Wed, 05 Apr 2006 03:29:38 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2006-04-05T03:29:38Z</dc:date>
    <item>
      <title>FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765944#M260356</link>
      <description>I need to copy folder from remote machine to local machine using FTP. How to write a batch file to automate FTP commands. If anyone can help me in writing this batch file</description>
      <pubDate>Wed, 05 Apr 2006 01:40:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765944#M260356</guid>
      <dc:creator>VIJAY KUMAR_8</dc:creator>
      <dc:date>2006-04-05T01:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765945#M260357</link>
      <description>(&lt;BR /&gt;echo "echo "user user_name user_pass"&lt;BR /&gt;echo "bin"&lt;BR /&gt;echo "cd /to_dir"&lt;BR /&gt;echo "put your_file"&lt;BR /&gt;echo "close"&lt;BR /&gt;echo "bye"&lt;BR /&gt;)|ftp -vni hostname &amp;gt; log_file &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;AND&lt;BR /&gt;&lt;BR /&gt;ftp -in myhost &amp;lt;&amp;lt; EOF&lt;BR /&gt;user username password&lt;BR /&gt;get /tmp/bla&lt;BR /&gt;get /tmp/foo&lt;BR /&gt;EOF  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Not good as it exposes the password. Use scp instead.</description>
      <pubDate>Wed, 05 Apr 2006 01:52:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765945#M260357</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-04-05T01:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765946#M260358</link>
      <description>here an example that would do the job, just change username, password and local path to your own values, then call&lt;BR /&gt;&lt;BR /&gt;ftpbatch your-ftp-host file1 file2&lt;BR /&gt;&lt;BR /&gt;-----------------------------&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#?-----------------------------------------------------------&lt;BR /&gt;#? ftpbatch utility&lt;BR /&gt;#?&lt;BR /&gt;#? Syntax:&lt;BR /&gt;#?   ftpbatch &lt;FTP-HOST&gt; &lt;FILE1&gt; [&lt;FILE2...&gt;&lt;/FILE2...&gt;#?-----------------------------------------------------------&lt;BR /&gt;if [ $# -lt 2 ] &lt;BR /&gt;then&lt;BR /&gt;  grep '#?' $0 | grep -v grep | tr -d "#?"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;THEHOST=$1&lt;BR /&gt;username=userx&lt;BR /&gt;userpw=ftppwd&lt;BR /&gt;localpath=/tmp&lt;BR /&gt;&lt;BR /&gt;shift&lt;BR /&gt;NBPARAM=$#&lt;BR /&gt;FICTMP="/tmp/MFTPTMP.tmp.$$"&lt;BR /&gt;umask 077&lt;BR /&gt;#&lt;BR /&gt;echo "user root omccn1"  &amp;gt;$FICTMP&lt;BR /&gt;echo "binary"  &amp;gt;&amp;gt;$FICTMP&lt;BR /&gt;echo "lcd $localpath"  &amp;gt;&amp;gt;$FICTMP&lt;BR /&gt;I=`expr 0`&lt;BR /&gt;while [ $I -lt $NBPARAM ];do&lt;BR /&gt;  destfile=`basename $1`&lt;BR /&gt;  echo "get $1 $destfile " &amp;gt;&amp;gt;$FICTMP&lt;BR /&gt;  echo "site chmod 777 $destfile" &amp;gt;&amp;gt;$FICTMP&lt;BR /&gt;  I=`expr $I + 1`&lt;BR /&gt;  shift 1&lt;BR /&gt;done&lt;BR /&gt;echo "quit" &amp;gt;&amp;gt;$FICTMP&lt;BR /&gt;#&lt;BR /&gt;ftp -inv $THEHOST &amp;lt; $FICTMP&lt;BR /&gt;rm $FICTMP&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;/FILE1&gt;&lt;/FTP-HOST&gt;</description>
      <pubDate>Wed, 05 Apr 2006 02:20:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765946#M260358</guid>
      <dc:creator>Antonio Cardoso_1</dc:creator>
      <dc:date>2006-04-05T02:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765947#M260359</link>
      <description>strange...... I was replying in another thread.. but it was removed.&lt;BR /&gt;&lt;BR /&gt;Solution:&lt;BR /&gt;&lt;BR /&gt;ftp -in &lt;REMOTE-SERVER&gt; &amp;lt;&amp;lt;-!&lt;BR /&gt;user &lt;USER&gt; &lt;PASSWD&gt;&lt;BR /&gt;commands&lt;BR /&gt;bye&lt;BR /&gt;!&lt;BR /&gt;&lt;BR /&gt;will work.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;/PASSWD&gt;&lt;/USER&gt;&lt;/REMOTE-SERVER&gt;</description>
      <pubDate>Wed, 05 Apr 2006 03:29:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765947#M260359</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-04-05T03:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765948#M260360</link>
      <description>You can as well avoid the user command in ftp to show the password using .netrc file setup in your users home directory.&lt;BR /&gt;&lt;BR /&gt;Read netrc man page for example setup. Then use ftp script without user command.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu</description>
      <pubDate>Wed, 05 Apr 2006 03:30:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765948#M260360</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-04-05T03:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765949#M260361</link>
      <description>Vijay,&lt;BR /&gt;I am not sure whether by 'folder' you mean a file or directory.&lt;BR /&gt;&lt;BR /&gt;For individual file transfer see earlier answers.&lt;BR /&gt;&lt;BR /&gt;For copying directory structure, seem the various packages at:&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Networking/FTP/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Other solutions would be to use rcp or nfs.&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Apr 2006 03:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765949#M260361</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-04-05T03:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765950#M260362</link>
      <description>Hi Vijay, &lt;BR /&gt;&lt;BR /&gt;You can take a look these threads for more information, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=973452" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=973452&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=129038" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=129038&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 05 Apr 2006 03:38:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765950#M260362</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-04-05T03:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765951#M260363</link>
      <description>Thanks to u all&lt;BR /&gt;:-)</description>
      <pubDate>Wed, 05 Apr 2006 05:27:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765951#M260363</guid>
      <dc:creator>VIJAY KUMAR_8</dc:creator>
      <dc:date>2006-04-05T05:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: FTP SCRIPT</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765952#M260364</link>
      <description>Vijay, You can close this thread. &lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Wed, 05 Apr 2006 05:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script/m-p/3765952#M260364</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2006-04-05T05:28:09Z</dc:date>
    </item>
  </channel>
</rss>

