<?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 FTP to another HP machine; auto logon in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674241#M51669</link>
    <description>I want to setup a script that will run under cron that will ftp files from one HP machine to another. How do I specify the userid and password when the script connects?</description>
    <pubDate>Fri, 01 Mar 2002 13:12:28 GMT</pubDate>
    <dc:creator>Tim Hawk</dc:creator>
    <dc:date>2002-03-01T13:12:28Z</dc:date>
    <item>
      <title>FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674241#M51669</link>
      <description>I want to setup a script that will run under cron that will ftp files from one HP machine to another. How do I specify the userid and password when the script connects?</description>
      <pubDate>Fri, 01 Mar 2002 13:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674241#M51669</guid>
      <dc:creator>Tim Hawk</dc:creator>
      <dc:date>2002-03-01T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674242#M51670</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use the .netrc file in the home directory for the user. you must put in the file:&lt;BR /&gt;machine machinename login username password userpassword &lt;BR /&gt;&lt;BR /&gt;And thats all.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Mar 2002 13:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674242#M51670</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-03-01T13:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674243#M51671</link>
      <description>You can try this&lt;BR /&gt;&lt;BR /&gt;echo "&lt;BR /&gt;open hostname&lt;BR /&gt;user username password&lt;BR /&gt;put file&lt;BR /&gt;close&lt;BR /&gt;" | ftp -i -n&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Mar 2002 13:16:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674243#M51671</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2002-03-01T13:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674244#M51672</link>
      <description>ftp -n -v &amp;lt;&amp;lt;-EOF&lt;BR /&gt;  open [A.B.C.D]&lt;BR /&gt;  user [USERNAME] [PASSWORD]&lt;BR /&gt;  binary&lt;BR /&gt;  put [FILENAME]&lt;BR /&gt;  quit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;Replace the bracketed expressions with stuff that's appropriate for your system.  Make sure EOF appears in the leftmost column.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Mar 2002 13:18:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674244#M51672</guid>
      <dc:creator>Christopher Caldwell</dc:creator>
      <dc:date>2002-03-01T13:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674245#M51673</link>
      <description>What is the difference between machine and machinename?</description>
      <pubDate>Fri, 01 Mar 2002 13:22:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674245#M51673</guid>
      <dc:creator>Tim Hawk</dc:creator>
      <dc:date>2002-03-01T13:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674246#M51674</link>
      <description>Hi Tim,&lt;BR /&gt;&lt;BR /&gt;machine, login, and password are keywords.  machinename is the name of the server you want to connect to.&lt;BR /&gt;&lt;BR /&gt;man netrc for more info.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 01 Mar 2002 13:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674246#M51674</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-01T13:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674247#M51675</link>
      <description>You can do some thing like this.&lt;BR /&gt;&lt;BR /&gt;ftp -inv transrva &amp;lt;&lt;ENDFTP&gt;&lt;/ENDFTP&gt;user username passwd&lt;BR /&gt;bin&lt;BR /&gt;lcd dir&lt;BR /&gt;cd dir&lt;BR /&gt;mput *&lt;BR /&gt;bye&lt;BR /&gt;EndFTP</description>
      <pubDate>Fri, 01 Mar 2002 14:00:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674247#M51675</guid>
      <dc:creator>Anthony khan</dc:creator>
      <dc:date>2002-03-01T14:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674248#M51676</link>
      <description>I found out something interesting a couple of weeks ago concerning automated ftp scripts called via cron.  Here's what I posted in that thread:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3e6050011d20d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3e6050011d20d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt; begin quote &amp;gt;&amp;gt;&lt;BR /&gt;Are you running the ftp script from www's crontab? Or are you running it from root's crontab (su'ing to www)? &lt;BR /&gt;&lt;BR /&gt;It will work if you use www's crontab but "su - www -c ftpscript" in root's crontab is going to fail. man netrc says: &lt;BR /&gt;&lt;BR /&gt;If the .netrc file contains password or account information for use other than for anonymous ftp, its owner must match the effective user ID of the current process. Its read, write, and execute mode bits for group and other must all be zero, and it must be eadable by its owner. Otherwise, the file is ignored. &lt;BR /&gt;&lt;BR /&gt;I think that may be your problem. I don't know how to correct your issue other than to allow www to run cron (/usr/lib/cron/cron.allow).&lt;BR /&gt;&lt;BR /&gt;&amp;lt;&amp;lt; end quote &amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately for Vishwa my reply didn't help.  But I thought you may run into it so...&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Fri, 01 Mar 2002 14:13:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674248#M51676</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-01T14:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: FTP to another HP machine; auto logon</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674249#M51677</link>
      <description>Tim,&lt;BR /&gt;&lt;BR /&gt;If the two HP machines are within the same LAN/WAN and not over the internet, then you can use "rcp", which is a LOT easier to script than "ftp". &lt;BR /&gt;&lt;BR /&gt;Now if you MUST proceed with "ftp", then I suggest you use "perl's" FTP modules that are easy to use:&lt;BR /&gt;&lt;BR /&gt;Look at Clay's answer:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x47f235067c18d6118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x47f235067c18d6118ff40090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Fri, 01 Mar 2002 14:38:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ftp-to-another-hp-machine-auto-logon/m-p/2674249#M51677</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-03-01T14:38:19Z</dc:date>
    </item>
  </channel>
</rss>

