<?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 Problem with FTP in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108707#M7816</link>
    <description>Hi&lt;BR /&gt;I have an Alpha Server with Tru64 ver. 4.0 and I want to schedule a script that let me transfer files in mode no interactive. At first a thought in the following command&lt;BR /&gt;&lt;BR /&gt;ftp -s parameter_file_name&lt;BR /&gt;&lt;BR /&gt;But I relialized that this option (-s)not exist in the FTP that is installed with my version of Operating System.&lt;BR /&gt;&lt;BR /&gt;So my question is, Is there a way to transfer a file in mode no interactive.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;</description>
    <pubDate>Mon, 03 Nov 2003 10:29:30 GMT</pubDate>
    <dc:creator>José Luis Martínez</dc:creator>
    <dc:date>2003-11-03T10:29:30Z</dc:date>
    <item>
      <title>Problem with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108707#M7816</link>
      <description>Hi&lt;BR /&gt;I have an Alpha Server with Tru64 ver. 4.0 and I want to schedule a script that let me transfer files in mode no interactive. At first a thought in the following command&lt;BR /&gt;&lt;BR /&gt;ftp -s parameter_file_name&lt;BR /&gt;&lt;BR /&gt;But I relialized that this option (-s)not exist in the FTP that is installed with my version of Operating System.&lt;BR /&gt;&lt;BR /&gt;So my question is, Is there a way to transfer a file in mode no interactive.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Nov 2003 10:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108707#M7816</guid>
      <dc:creator>José Luis Martínez</dc:creator>
      <dc:date>2003-11-03T10:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108708#M7817</link>
      <description>You can try &lt;BR /&gt; &lt;BR /&gt;ftp hostname &amp;lt;&amp;lt; EOF&lt;BR /&gt;user username&lt;BR /&gt;password password&lt;BR /&gt;etc &lt;BR /&gt;etc&lt;BR /&gt;etc&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;I have never used it but something like that works, I'm sure of it</description>
      <pubDate>Mon, 03 Nov 2003 10:50:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108708#M7817</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-11-03T10:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108709#M7818</link>
      <description>Here is an example that works already several years.&lt;BR /&gt;&lt;BR /&gt;It is included in a script that is started via cron.&lt;BR /&gt;&lt;BR /&gt;ftp -n -v ftp.domain.com &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;user anonymous mymailadress@hp.com&lt;BR /&gt;prompt&lt;BR /&gt;cd /the_directory_I_prefer&lt;BR /&gt;get the_file_I_need&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Of course, I modified some directories and filenames. Modify them for your particular usage.&lt;BR /&gt;&lt;BR /&gt;You can also use expect scripting. This gives you much more possibilities.&lt;BR /&gt;&lt;BR /&gt;Here is a very simple one, without much error recovery, except the timeout.&lt;BR /&gt;Beware, it is not a secure solution !!!&lt;BR /&gt;&lt;BR /&gt;#!/usr/local/bin/expect --&lt;BR /&gt;if $argc!=1 {&lt;BR /&gt;        send_user "Usage: ftp-exp &lt;FILENAME&gt;\n"&lt;BR /&gt;        exit&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;set file "$argv"&lt;BR /&gt;&lt;BR /&gt;set timeout 15&lt;BR /&gt;spawn ftp ftpsite@dom.com&lt;BR /&gt;expect "Name"&lt;BR /&gt;send "A_Login_ID\r"&lt;BR /&gt;expect "Password:"&lt;BR /&gt;send "My_password\r"&lt;BR /&gt;expect "ftp&amp;gt; "&lt;BR /&gt;send "cd /incoming\r"&lt;BR /&gt;expect "ftp&amp;gt; "&lt;BR /&gt;send "binary\r"&lt;BR /&gt;expect "ftp&amp;gt; "&lt;BR /&gt;send "get $file\r"&lt;BR /&gt;send "bye\r"&lt;BR /&gt;expect "bye."&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this inspires.&lt;BR /&gt;&lt;BR /&gt;Joris&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Mon, 03 Nov 2003 12:12:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108709#M7818</guid>
      <dc:creator>Joris Denayer</dc:creator>
      <dc:date>2003-11-03T12:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FTP</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108710#M7819</link>
      <description>Thanks everybody&lt;BR /&gt;&lt;BR /&gt;Your suggestions were so useful, that rigth now my script is running from the cron, thanks again.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Nov 2003 16:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/problem-with-ftp/m-p/3108710#M7819</guid>
      <dc:creator>José Luis Martínez</dc:creator>
      <dc:date>2003-11-03T16:05:08Z</dc:date>
    </item>
  </channel>
</rss>

