<?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: help in ftp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786608#M78587</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have the following in a script for ftp&lt;BR /&gt;&lt;BR /&gt;{ ftp -n -v $FTPSERVER &amp;lt;&amp;lt; ENDOFGET&lt;BR /&gt;user $FTPUSER $FTPPASSWD&lt;BR /&gt;prompt&lt;BR /&gt;binary&lt;BR /&gt;get $GETFILE $LOCALFILE.transfer&lt;BR /&gt;close&lt;BR /&gt;ENDOFGET&lt;BR /&gt;} &amp;gt; $TMPFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;$FTPSERVER is the remote server&lt;BR /&gt;$FTPUSER is the username&lt;BR /&gt;$FTPPASSWD is the password for that user&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Hilary&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Aug 2002 07:24:37 GMT</pubDate>
    <dc:creator>BFA6</dc:creator>
    <dc:date>2002-08-15T07:24:37Z</dc:date>
    <item>
      <title>help in ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786605#M78584</link>
      <description>Hi, I'm trying to ftp to a remote station in an automatic way - using a script.&lt;BR /&gt;How can I enter a user and password in a script that is run by crontab ?&lt;BR /&gt;thanks.&lt;BR /&gt;&lt;BR /&gt;Amir</description>
      <pubDate>Thu, 15 Aug 2002 07:08:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786605#M78584</guid>
      <dc:creator>Amir Efrat</dc:creator>
      <dc:date>2002-08-15T07:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: help in ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786606#M78585</link>
      <description>you can enter:&lt;BR /&gt;&lt;BR /&gt;ftp hostname &amp;lt;&lt;EOF&gt;&lt;/EOF&gt;user USERID PASSWORD&lt;BR /&gt;put file1 file2&lt;BR /&gt;bye&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Aug 2002 07:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786606#M78585</guid>
      <dc:creator>Alan Casey</dc:creator>
      <dc:date>2002-08-15T07:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: help in ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786607#M78586</link>
      <description>Hi&lt;BR /&gt;try it:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# Script to FTP file&lt;BR /&gt;# ftp host user password source_file destination_dir&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;HOST=$1&lt;BR /&gt;USER=$2&lt;BR /&gt;PASS=$3&lt;BR /&gt;FILE=$4&lt;BR /&gt;DEST_DIR=$5&lt;BR /&gt;&lt;BR /&gt;( echo "user $USER $PASS"&lt;BR /&gt;echo "binary"&lt;BR /&gt;echo "cd $DEST_DIR"&lt;BR /&gt;echo "put $FILE"&lt;BR /&gt;echo "quit" ) | ftp -i -n $HOST&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;use:&lt;BR /&gt;./script server1 jack pass file dir1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;hope it help</description>
      <pubDate>Thu, 15 Aug 2002 07:23:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786607#M78586</guid>
      <dc:creator>Sebastian Galeski_1</dc:creator>
      <dc:date>2002-08-15T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: help in ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786608#M78587</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have the following in a script for ftp&lt;BR /&gt;&lt;BR /&gt;{ ftp -n -v $FTPSERVER &amp;lt;&amp;lt; ENDOFGET&lt;BR /&gt;user $FTPUSER $FTPPASSWD&lt;BR /&gt;prompt&lt;BR /&gt;binary&lt;BR /&gt;get $GETFILE $LOCALFILE.transfer&lt;BR /&gt;close&lt;BR /&gt;ENDOFGET&lt;BR /&gt;} &amp;gt; $TMPFILE 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;$FTPSERVER is the remote server&lt;BR /&gt;$FTPUSER is the username&lt;BR /&gt;$FTPPASSWD is the password for that user&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Hilary&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Aug 2002 07:24:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786608#M78587</guid>
      <dc:creator>BFA6</dc:creator>
      <dc:date>2002-08-15T07:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: help in ftp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786609#M78588</link>
      <description>You could also set up a .netrc for the user&lt;BR /&gt;&lt;BR /&gt;Create this in their home directory.&lt;BR /&gt;&lt;BR /&gt;It can contain a number of entries in the format&lt;BR /&gt;&lt;BR /&gt;machine &lt;HOSTNAME&gt; login &lt;USERID&gt; password &lt;PASSWORD&gt;&lt;BR /&gt;&lt;BR /&gt;set this file to have read only permissions for the user &lt;BR /&gt;&lt;BR /&gt;chmod 400 .netrc&lt;BR /&gt;&lt;BR /&gt;then, ftp to the machine identified by &lt;HOSTNAME&gt;&lt;BR /&gt;&lt;BR /&gt;This should then automatically log you in to the server without requesting an ID/password.&lt;BR /&gt;&lt;BR /&gt;Don't forget that having passwords in scripts and .netrc files can be a security risk.&lt;/HOSTNAME&gt;&lt;/PASSWORD&gt;&lt;/USERID&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Thu, 15 Aug 2002 07:34:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-ftp/m-p/2786609#M78588</guid>
      <dc:creator>Chris Wilshaw</dc:creator>
      <dc:date>2002-08-15T07:34:24Z</dc:date>
    </item>
  </channel>
</rss>

