<?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 Simple FTP script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431748#M768064</link>
    <description>Anyone have a simple FTP script to automate the transfer of a file to multple systems? Anyone know how to encorporate chmod into this? I'm new to unix and thus scripting so&lt;BR /&gt;I'm wondering if anyone has a simple ftp script to do this or can walk me through it.&lt;BR /&gt;I want to ftp (+ prompt for user,passwd,but leave dir and file name as /etc/hosts) a standard host file to a bunch of systems and ensure permissions on it so it will be available for use. Running ITO and adding managed nodes across the wan and need to ensure host is the same in all locations.</description>
    <pubDate>Wed, 19 Jul 2000 22:09:09 GMT</pubDate>
    <dc:creator>Victor Mendham</dc:creator>
    <dc:date>2000-07-19T22:09:09Z</dc:date>
    <item>
      <title>Simple FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431748#M768064</link>
      <description>Anyone have a simple FTP script to automate the transfer of a file to multple systems? Anyone know how to encorporate chmod into this? I'm new to unix and thus scripting so&lt;BR /&gt;I'm wondering if anyone has a simple ftp script to do this or can walk me through it.&lt;BR /&gt;I want to ftp (+ prompt for user,passwd,but leave dir and file name as /etc/hosts) a standard host file to a bunch of systems and ensure permissions on it so it will be available for use. Running ITO and adding managed nodes across the wan and need to ensure host is the same in all locations.</description>
      <pubDate>Wed, 19 Jul 2000 22:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431748#M768064</guid>
      <dc:creator>Victor Mendham</dc:creator>
      <dc:date>2000-07-19T22:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431749#M768065</link>
      <description>LOG=&lt;WHERE you="" want=""&gt;&lt;BR /&gt;cd /&lt;WHERE you="" want=""&gt;&lt;BR /&gt;&lt;BR /&gt;ftp -n -v &lt;HOSTNAME&gt; &amp;gt; $LOG &amp;lt;&amp;lt; ENDFTP&lt;BR /&gt;user &lt;USERNAME&gt;&lt;PASSWD&gt;&lt;BR /&gt;lcd /&lt;WHERE you="" want=""&gt;&lt;BR /&gt;get/put &lt;WHAT you="" want=""&gt;&lt;BR /&gt;ENDFTP&lt;BR /&gt;&lt;BR /&gt;This will do just one host. Can embellish to do more.&lt;BR /&gt;&lt;BR /&gt;Do a search for FTP in the forums and you will find multiple threads on this subject.&lt;/WHAT&gt;&lt;/WHERE&gt;&lt;/PASSWD&gt;&lt;/USERNAME&gt;&lt;/HOSTNAME&gt;&lt;/WHERE&gt;&lt;/WHERE&gt;</description>
      <pubDate>Wed, 19 Jul 2000 22:34:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431749#M768065</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-07-19T22:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431750#M768066</link>
      <description>Do a querry in the forum. You'll get more than one script.&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Jul 2000 03:17:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431750#M768066</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-07-20T03:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431751#M768067</link>
      <description>I suggest you look into the rdist utility.  This process will copy files and/or directories to any number of designated machines.  Additionally, by default it will maintain the permissions, ownership (if the user exists on the target box), and the file modification date of the files and structures as well.  It has a variety of other capabilities as well (remsh, mailing, and others).  At first the documentation can be a bit overwhelming, but learning how to play with this utility will be well worth your while down the street.  The maps that you can devise can be as simple or as complex as you want.  I've even performed a full database environment migration from an AIX box to an HP with a variety of file conversions in between by using rdist (100,000+ files).  During the Y2K thing, it made creating  and maintaining multiple environments a breeze.  The nice thing is that you can map out areas you don't want to copy as well and files that have not changed will remain as is but will be verified.&lt;BR /&gt;&lt;BR /&gt;There are two different versions of the utility.  The HP version comes standard with the system but needs the fileset loaded from the install disks (it's not loaded by default on a new install).  There are some patches out there too.  The other version is available from GNU.  I prefer this version where it has some additional capabilities and can also talk to non HP machines.  The last I knew, the porting center has some binaries precompiled, but compiling it with either the HP ANSI C compiler or gcc is no problem.</description>
      <pubDate>Thu, 20 Jul 2000 03:27:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431751#M768067</guid>
      <dc:creator>Tim Malnati</dc:creator>
      <dc:date>2000-07-20T03:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Simple FTP script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431752#M768068</link>
      <description>If you are going to do what I think, you may get yourself into some trouble.  It is not advisable to copy an "/etc/hosts" file from one system to another.  There is pertinant information in this file, which can upset your system if the order of information is disturbed.&lt;BR /&gt;I.E.  If running bind, the name server should be the first entry, second entry is the local host, third entry is the loopback.  Sendmail can have difficulty if this order is not preserved, as well as some other applications.&lt;BR /&gt;If you need to sync hostnames, can you run either bind, or nis?  This would be the preferred method.&lt;BR /&gt;Regards&lt;BR /&gt;Shannon Petry</description>
      <pubDate>Tue, 01 Aug 2000 19:14:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/simple-ftp-script/m-p/2431752#M768068</guid>
      <dc:creator>Shannon Petry</dc:creator>
      <dc:date>2000-08-01T19:14:47Z</dc:date>
    </item>
  </channel>
</rss>

