<?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: Script for FTPing files to another server in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742236#M4040</link>
    <description>If you don't want to put password in script, you can use sftp, generate the public keys and put in remote host for doing it without passwd</description>
    <pubDate>Sat, 04 Mar 2006 00:43:42 GMT</pubDate>
    <dc:creator>Harmanjit_1</dc:creator>
    <dc:date>2006-03-04T00:43:42Z</dc:date>
    <item>
      <title>Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742229#M4033</link>
      <description>Hi to all,&lt;BR /&gt;&lt;BR /&gt;I wish to write a script in TRU64 (5.1) for following purpose:&lt;BR /&gt;&lt;BR /&gt;1. To ftp some critical ascii &amp;amp; binary files from production server to DR server on daily basis.&lt;BR /&gt;2. Change ownership(chown) and permissions (chmod) of files thus transferred to DR server.&lt;BR /&gt;&lt;BR /&gt;I have following concerns/requirements:&lt;BR /&gt;1. If possible, I wish to run it in background. Whenever this file is created in Prod server, it should be able to detect it and initiate a ftp to DR server.&lt;BR /&gt;2. I do not wish to embed any password (if required) into the script.&lt;BR /&gt;&lt;BR /&gt;Can anyone provide any suggestion, pointers, source of TRU64 scripting reference books that can help me out with the above?&lt;BR /&gt;Any help will be appreciated.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 01 Mar 2006 23:42:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742229#M4033</guid>
      <dc:creator>k_75</dc:creator>
      <dc:date>2006-03-01T23:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742230#M4034</link>
      <description>Normal FTP is typically anonymous (where no&lt;BR /&gt;one cares about the password), or else it&lt;BR /&gt;uses a real user name and password, in which&lt;BR /&gt;case you would need, but don't really want,&lt;BR /&gt;the password in your script.  As you're&lt;BR /&gt;_sending_ files, anonymous FTP is a poor&lt;BR /&gt;choice, and if you're trying to keep the&lt;BR /&gt;password hidden, normal FTP is not much&lt;BR /&gt;better.&lt;BR /&gt;&lt;BR /&gt;Assuming that something like NFS is not&lt;BR /&gt;available, you could use a scheme like&lt;BR /&gt;"sftp" or "scp", which use the same&lt;BR /&gt;authentication schemes as "ssh", including&lt;BR /&gt;host-based and public key.  This would&lt;BR /&gt;obviate the inclusion of the password in your&lt;BR /&gt;script.&lt;BR /&gt;&lt;BR /&gt;"man sftp" suggests that chown and chmod&lt;BR /&gt;are not available within sftp, but you could&lt;BR /&gt;use separate "ssh" commands after the sftp&lt;BR /&gt;transfers are complete.&lt;BR /&gt;&lt;BR /&gt;You can use "cron" to run the script&lt;BR /&gt;periodically, and it could check the source&lt;BR /&gt;directory ("ls" or, perhaps, "find") to see&lt;BR /&gt;if there are any files to be sent.&lt;BR /&gt;&lt;BR /&gt;There must be a zillion scripts like this&lt;BR /&gt;which have already been written, but I don't&lt;BR /&gt;have one.</description>
      <pubDate>Thu, 02 Mar 2006 00:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742230#M4034</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-03-02T00:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742231#M4035</link>
      <description>And if both ends are UNIX (or UNIX-like),&lt;BR /&gt;then the ASCII-binary distinction is not&lt;BR /&gt;important.</description>
      <pubDate>Thu, 02 Mar 2006 00:55:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742231#M4035</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-03-02T00:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742232#M4036</link>
      <description>For ftp, you can use something like this:&lt;BR /&gt;&lt;BR /&gt;echo "user username password&lt;BR /&gt;asc&lt;BR /&gt;cd $FTPDIR&lt;BR /&gt;lcd $LOCALDIR&lt;BR /&gt;mput *&lt;BR /&gt;site chmod &lt;MODE&gt; *&lt;BR /&gt;bye" |  ftp -i -n ftp.personal.com.py &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If you don't want to specify the password in the script, you must use scp with public keys authentication. Your public key must be generated without a passphrase. See man ssh-pubkeymgr.&lt;/MODE&gt;</description>
      <pubDate>Thu, 02 Mar 2006 06:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742232#M4036</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-03-02T06:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742233#M4037</link>
      <description>Thanks folks.&lt;BR /&gt;Can you also provide pointer to some scripting reference material that I can refer to?</description>
      <pubDate>Fri, 03 Mar 2006 06:50:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742233#M4037</guid>
      <dc:creator>k_75</dc:creator>
      <dc:date>2006-03-03T06:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742234#M4038</link>
      <description>I would not recommend Ivan's solution as there is no way to handle failures that way.&lt;BR /&gt;&lt;BR /&gt;A better way is to control the ftp client from expect (&lt;A href="http://expect.nist.gov/)" target="_blank"&gt;http://expect.nist.gov/)&lt;/A&gt; or use a scriptable ftp client, such as kermit (&lt;A href="http://www.columbia.edu/kermit/index.html," target="_blank"&gt;http://www.columbia.edu/kermit/index.html,&lt;/A&gt; &lt;A href="http://www.columbia.edu/kermit/ftpclient.html)." target="_blank"&gt;http://www.columbia.edu/kermit/ftpclient.html).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Note that Kermit can also be used for secure ftp connections, see &lt;A href="http://www.columbia.edu/kermit/ckermi80.html#x3.2" target="_blank"&gt;http://www.columbia.edu/kermit/ckermi80.html#x3.2&lt;/A&gt;</description>
      <pubDate>Fri, 03 Mar 2006 09:04:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742234#M4038</guid>
      <dc:creator>Orjan Petersson</dc:creator>
      <dc:date>2006-03-03T09:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742235#M4039</link>
      <description>As someone has probably done this before, you&lt;BR /&gt;might try asking Google about something like:&lt;BR /&gt;&lt;BR /&gt;"shell script" ftp&lt;BR /&gt;&lt;BR /&gt;One thing it turned up, for example, was a&lt;BR /&gt;pretty complete Kermit solution:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.columbia.edu/kermit/ftpscripts.html" target="_blank"&gt;http://www.columbia.edu/kermit/ftpscripts.html&lt;/A&gt;</description>
      <pubDate>Fri, 03 Mar 2006 09:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742235#M4039</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-03-03T09:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742236#M4040</link>
      <description>If you don't want to put password in script, you can use sftp, generate the public keys and put in remote host for doing it without passwd</description>
      <pubDate>Sat, 04 Mar 2006 00:43:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742236#M4040</guid>
      <dc:creator>Harmanjit_1</dc:creator>
      <dc:date>2006-03-04T00:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742237#M4041</link>
      <description>&amp;gt; [...] you can use sftp, [...]&lt;BR /&gt;&lt;BR /&gt;[Forehead smack!]  Doh!  Why didn't I think&lt;BR /&gt;of that, and suggest it two days ago?!!&lt;BR /&gt;&lt;BR /&gt;No, wait.  I did.  Never mind.</description>
      <pubDate>Sat, 04 Mar 2006 01:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742237#M4041</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-03-04T01:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script for FTPing files to another server</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742238#M4042</link>
      <description>rsync is ideal for this task, plus it can use either rsh or ssh as the transport.  What's neat about rsync is that it only copies the files that have changed.  rsync has the capability to preserve (or not) permissions and ownership.&lt;BR /&gt;&lt;BR /&gt;You'll need to build it from source and put a symlink to it in /usr/bin/rsync.&lt;BR /&gt;&lt;BR /&gt;Mario</description>
      <pubDate>Wed, 08 Mar 2006 12:50:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/script-for-ftping-files-to-another-server/m-p/3742238#M4042</guid>
      <dc:creator>Mario Stargard</dc:creator>
      <dc:date>2006-03-08T12:50:48Z</dc:date>
    </item>
  </channel>
</rss>

