<?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 not working in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914595#M285058</link>
    <description>hi,&lt;BR /&gt;&lt;BR /&gt;does the command work when executed outside the script?&lt;BR /&gt;&lt;BR /&gt;could be a permission problem.&lt;BR /&gt;&lt;BR /&gt;please check&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
    <pubDate>Mon, 18 Dec 2006 07:17:18 GMT</pubDate>
    <dc:creator>Yogeeraj_1</dc:creator>
    <dc:date>2006-12-18T07:17:18Z</dc:date>
    <item>
      <title>ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914594#M285057</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I have made d below ftp script but the last part of script ie. moving the files after transfer (to a location in the source server only) is not working for me.&lt;BR /&gt;&lt;BR /&gt;Can anybody pls..help.in same..!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#######################################################&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;ftp -n 10.209.13.11 &amp;lt;&lt;END_SCRIPT&gt;&lt;/END_SCRIPT&gt;quote USER xyz&lt;BR /&gt;quote PASS xyz&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;cd /test&lt;BR /&gt;put reports.zip reports.tmp&lt;BR /&gt;rename reports.tmp reports.zip&lt;BR /&gt;#quit&lt;BR /&gt;bye&lt;BR /&gt;#END_SCRIPT&lt;BR /&gt;#exit 0&lt;BR /&gt;echo Arun&lt;BR /&gt;mv -f /export/VSNL_RECS_logs/MUM_ILD/strsp/reports.zip /test_script/test/&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;END_SCRIPT&lt;BR /&gt;#############################################################&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Dec 2006 06:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914594#M285057</guid>
      <dc:creator>rookie250</dc:creator>
      <dc:date>2006-12-18T06:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914595#M285058</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;does the command work when executed outside the script?&lt;BR /&gt;&lt;BR /&gt;could be a permission problem.&lt;BR /&gt;&lt;BR /&gt;please check&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;yogeeraj</description>
      <pubDate>Mon, 18 Dec 2006 07:17:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914595#M285058</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2006-12-18T07:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914596#M285059</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;For starters, your here-document needs to end where "#END_SCRIPT" appears.  In other words, uncomment that line, and remove or comment "END_SCRIPT" appearing at the end of the script.&lt;BR /&gt;&lt;BR /&gt;Next make sure that the ftp user has read permission on reports.zip and write permission on /test_script/test/.  Also make sure that reports.zip exists at the time the script is run.  Just to be safe, substitute the absolute path to mv (/usr/bin/mv).&lt;BR /&gt;&lt;BR /&gt;Try running the "mv -f ..." command separately.  Do you receive any error messages?&lt;BR /&gt;&lt;BR /&gt;PCS</description>
      <pubDate>Mon, 18 Dec 2006 07:23:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914596#M285059</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-12-18T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914597#M285060</link>
      <description>Hi,&lt;BR /&gt;if I well understood, try this:&lt;BR /&gt;#######################################################&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;ftp -n 10.209.13.11 &amp;lt;&lt;END_SCRIPT&gt;&lt;/END_SCRIPT&gt;quote USER xyz&lt;BR /&gt;quote PASS xyz&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;cd /test&lt;BR /&gt;put reports.zip reports.tmp&lt;BR /&gt;rename reports.tmp reports.zip&lt;BR /&gt;#quit&lt;BR /&gt;bye&lt;BR /&gt;END_SCRIPT&lt;BR /&gt;#exit 0&lt;BR /&gt;echo Arun&lt;BR /&gt;mv -f /export/VSNL_RECS_logs/MUM_ILD/strsp/reports.zip /test_script/test/&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;#END_SCRIPT&lt;BR /&gt;############################################################# &lt;BR /&gt;&lt;BR /&gt;the END_SCRIPT label has to close teh input for ftp. In this way the mv command will be executed by shell instead of ftp.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Art</description>
      <pubDate>Tue, 19 Dec 2006 03:32:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914597#M285060</guid>
      <dc:creator>Arturo Galbiati</dc:creator>
      <dc:date>2006-12-19T03:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914598#M285061</link>
      <description>&amp;gt; quote USER xyz&lt;BR /&gt;&amp;gt; quote PASS xyz&lt;BR /&gt;&lt;BR /&gt;Why not use a simple "user" command?  For&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;user user_name password&lt;BR /&gt;&lt;BR /&gt;Using "quote USER" and "quote PASS" seems&lt;BR /&gt;like the hard way to do the job.&lt;BR /&gt;&lt;BR /&gt;Also, "prompt" affects prompting for&lt;BR /&gt;multiple-file commands (like "mget" and&lt;BR /&gt;"mput").  You don't seem to be using any of&lt;BR /&gt;those.</description>
      <pubDate>Tue, 19 Dec 2006 03:50:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914598#M285061</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-12-19T03:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914599#M285062</link>
      <description>&lt;BR /&gt;Could you use something like this?&lt;BR /&gt;It works for me on HPUX 11i:&lt;BR /&gt;&lt;BR /&gt;ftp -in &amp;lt; commands.txt&lt;BR /&gt;&lt;BR /&gt;---File "commands.txt"---&lt;BR /&gt;open [machine_ip]&lt;BR /&gt;user [ftp_user] [ftp_password]&lt;BR /&gt;lcd [full_path_local_dir]&lt;BR /&gt;cd [full_path_dest_dir]&lt;BR /&gt;bin&lt;BR /&gt;mput [files_to_move]&lt;BR /&gt;bye&lt;BR /&gt;-------------------------&lt;BR /&gt;&lt;BR /&gt;  Hope this helps</description>
      <pubDate>Tue, 19 Dec 2006 05:19:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914599#M285062</guid>
      <dc:creator>Carlos M.J.</dc:creator>
      <dc:date>2006-12-19T05:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: ftp script not working</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914600#M285063</link>
      <description>you need to specify the full path to rename the file ie&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;ftp -n 10.209.13.11 &amp;lt;&lt;END_SCRIPT&gt;&lt;/END_SCRIPT&gt;quote USER xyz&lt;BR /&gt;quote PASS xyz&lt;BR /&gt;bin&lt;BR /&gt;prompt&lt;BR /&gt;cd /test&lt;BR /&gt;put reports.zip reports.tmp&lt;BR /&gt;&lt;BR /&gt;rename /{fullpath}/reports.zip /{fullpath}/reports.zip&lt;BR /&gt;&lt;BR /&gt;bye&lt;BR /&gt;!END_SCRIPT&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;echo Arun&lt;BR /&gt;mv -f /export/VSNL_RECS_logs/MUM_ILD/strsp/reports.zip /test_script/test/&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;This works for me.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2006 05:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-script-not-working/m-p/3914600#M285063</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2006-12-19T05:29:53Z</dc:date>
    </item>
  </channel>
</rss>

