<?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: remote copy. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761495#M72571</link>
    <description>Hi Frank:&lt;BR /&gt;&lt;BR /&gt; Can you explain&lt;BR /&gt;&lt;BR /&gt;"|IFS=' '&amp;amp;&amp;amp;exec /path/to/your/script" &lt;BR /&gt; and what is procmail?? is it on by default?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
    <pubDate>Thu, 11 Jul 2002 14:09:56 GMT</pubDate>
    <dc:creator>joe_91</dc:creator>
    <dc:date>2002-07-11T14:09:56Z</dc:date>
    <item>
      <title>remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761484#M72560</link>
      <description>Hi Team:&lt;BR /&gt;&lt;BR /&gt;  This is a strange requirement and i am not sure there is a workaround? I need to copy a file from hostA to hostB on a regular basis(probably a cron job). But i should not do the following..&lt;BR /&gt;1. No rcp&lt;BR /&gt;2. No ftp as it would require a password.&lt;BR /&gt;3. The cron job even if run should not be run as root.&lt;BR /&gt;&lt;BR /&gt; Any ideas folks, Please help me here,&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Joe.</description>
      <pubDate>Wed, 10 Jul 2002 23:12:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761484#M72560</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-10T23:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761485#M72561</link>
      <description>Here are some ways to do that,&lt;BR /&gt;&lt;BR /&gt;1) using NFS and run copy(through cronjob)&lt;BR /&gt;as a non-root user&lt;BR /&gt; (2) Using CIFS/9000 and run copy(through cronjob) as a non-root user &lt;BR /&gt;3) using scp</description>
      <pubDate>Wed, 10 Jul 2002 23:23:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761485#M72561</guid>
      <dc:creator>Arockia Jegan</dc:creator>
      <dc:date>2002-07-10T23:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761486#M72562</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt; Thanks for the quick reply, but scp would require a password is it not? The whole thing needs to be coded so that the cron would copy files as and when it finds new copy. we are running 11.0. Any ideas?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Wed, 10 Jul 2002 23:27:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761486#M72562</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-10T23:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761487#M72563</link>
      <description>Joe, &lt;BR /&gt;&lt;BR /&gt;scp wouldn't require a password, if you use public key authentication with an unencrypted key (note -- this has potential, serious security implications if someone other than the owner of the key can read it).&lt;BR /&gt;&lt;BR /&gt;Exact procedure depends on which implimentation of ssh you are using, but the command to feed cron would be the same:&lt;BR /&gt;scp user@hostb filename.on.hosta&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 10 Jul 2002 23:37:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761487#M72563</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-07-10T23:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761488#M72564</link>
      <description>Okay, given all of these restrictions, I would make a Perl client/server pair that would communicate over a dedicated port via sockets. The idea is that your cron job would fire off the Perl client. It would query the Perl server piece and ask "Have you got any new files for me?". If yes, then start sending otherwise exit.&lt;BR /&gt;&lt;BR /&gt;This would be a fairly straightforward bit of Perl. &lt;BR /&gt;&lt;BR /&gt;Plan B:&lt;BR /&gt;&lt;BR /&gt;If you were to allow anonymous ftp then you can do this very easily using the Perl Net::FTP module. &lt;BR /&gt;&lt;BR /&gt;Plan C: A C version of Plan A; Perl's easier and just about as fast.&lt;BR /&gt;&lt;BR /&gt;The Perl options are also platform independent and could even work in a Windows/UNIX environment without changes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Food for thought, Clay&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 01:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761488#M72564</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-07-11T01:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761489#M72565</link>
      <description>I am not sure rsync will do your job it is bascially used for updating files from remote server, as your issue also simillar .&lt;BR /&gt;think about it.&lt;BR /&gt;&lt;A href="http://rsync.samba.org/README.html" target="_blank"&gt;http://rsync.samba.org/README.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 06:33:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761489#M72565</guid>
      <dc:creator>kish_1</dc:creator>
      <dc:date>2002-07-11T06:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761490#M72566</link>
      <description>If 'they' are worried about the security of the receiving side, then let the receiving side rcp the files from the source. I.e. there would be a .rhosts file on the source, but not on the target/receiving_side.&lt;BR /&gt;&lt;BR /&gt;Other idea: Mail the file (if needed to a non-human 'user') and let the receiving side handle it, either (partially) 'manually', or fully automatic via .forward (and procmail if needed).</description>
      <pubDate>Thu, 11 Jul 2002 08:51:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761490#M72566</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-11T08:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761491#M72567</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt; Thanks. I am Impressed with Clay's solution but not sure how to execute it. I have no knowledge of rsync(but is it not another "r" commands that puts off the security guys). About mailing idea, how would you set it up for a non-human user with a .forward??&lt;BR /&gt;You help would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Thu, 11 Jul 2002 13:21:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761491#M72567</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-11T13:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761492#M72568</link>
      <description>Hi Joe,&lt;BR /&gt;&lt;BR /&gt;Have you checked the "rdist" command. I think it serves some purpose like that, but have not really used it myself, so i'm not sure.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 13:30:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761492#M72568</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-07-11T13:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761493#M72569</link>
      <description>Hi Sanjay:&lt;BR /&gt;&lt;BR /&gt;Thanks. So doesn't it require a password?&lt;BR /&gt;&lt;BR /&gt;Joe.</description>
      <pubDate>Thu, 11 Jul 2002 13:37:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761493#M72569</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-11T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761494#M72570</link>
      <description>&amp;gt; About mailing idea, how would you set it up for a non-human user with a .forward??&lt;BR /&gt;&lt;BR /&gt;I normally use procmail in .forward, but I think you can just put this in .forward (*including* the outer quotes):&lt;BR /&gt;&lt;BR /&gt;"|IFS=' '&amp;amp;&amp;amp;exec /path/to/your/script"&lt;BR /&gt;&lt;BR /&gt;[The space between the single quotes is just that, a space, i.e. not a tab.]&lt;BR /&gt;&lt;BR /&gt;The script can read the mail from its standard input and can do anything it likes with it.&lt;BR /&gt;&lt;BR /&gt;Note: You may have to tweak the sendmail configuration to allow executables in .forward files. I will leave that part to others, because, for mail, I am a user. not an admin.]&lt;BR /&gt;&lt;BR /&gt;Note 2: Instead of .forward you can set up an alias (see aliases(5M)) for the non-human user. I will leave that part also to others, for the same reason. &lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 14:03:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761494#M72570</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-11T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761495#M72571</link>
      <description>Hi Frank:&lt;BR /&gt;&lt;BR /&gt; Can you explain&lt;BR /&gt;&lt;BR /&gt;"|IFS=' '&amp;amp;&amp;amp;exec /path/to/your/script" &lt;BR /&gt; and what is procmail?? is it on by default?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Thu, 11 Jul 2002 14:09:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761495#M72571</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-11T14:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761496#M72572</link>
      <description>Hi Joe,&lt;BR /&gt;&lt;BR /&gt;My understanding in using rdist is that it works in the same manner as rcp, does not need a passowrd but does need a $HOME/.rhosts configured or /etc/hosts.equiv configured. Here is a link which could be of some help.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=500000000092407" target="_blank"&gt;http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&amp;amp;docId=500000000092407&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 14:24:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761496#M72572</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-07-11T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761497#M72573</link>
      <description>Don't worry about the details of what is in the .forward file. The only important part is "/path/to/your/script", which is the path and file name of your script which handles the incoming mail.&lt;BR /&gt;&lt;BR /&gt;procmail, 'process mail', is a program which can handle incoming mail. It has a commandfile, .procmailrc, which contains 'recipes' which tell procmail what to do with each type of mail, subject, address, etc., etc.. It can do quite a lot, but is probably not needed in your case. procmail is not included in HP-UX, but is freely available.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Jul 2002 14:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761497#M72573</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-11T14:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761498#M72574</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;  Well rdist.. if it has to use rhosts file then we may use rcp. Any advantages of rdist over rcp??&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Thu, 11 Jul 2002 15:52:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761498#M72574</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-11T15:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761499#M72575</link>
      <description>Joe -&lt;BR /&gt;There are a host of good ideas in this thread.&lt;BR /&gt;I guess it is a matter of preference.&lt;BR /&gt;In our shop that seems to be ftp.&lt;BR /&gt;We have countless automated ftp scripts that put and get files.&lt;BR /&gt;No intervention, secure passwords, error checking with automated emails on failures, etc., etc.&lt;BR /&gt;&lt;BR /&gt;Go for whatever your shop is comfortable with.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;dl</description>
      <pubDate>Thu, 11 Jul 2002 16:09:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761499#M72575</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-07-11T16:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761500#M72576</link>
      <description>Hi Dave:&lt;BR /&gt;&lt;BR /&gt;  Are you using ftp with .netrc. Can you send me the procedure if possible.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Thu, 11 Jul 2002 17:20:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761500#M72576</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-07-11T17:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761501#M72577</link>
      <description>Have you thought about using lp to send the file? You can set up a printer on the receiving station that prints to a file. Then from the sending station lpr to the receiving station. No security involved, no user ID's or anything. Just a thought.</description>
      <pubDate>Thu, 11 Jul 2002 17:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761501#M72577</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2002-07-11T17:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: remote copy.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761502#M72578</link>
      <description>Joe -&lt;BR /&gt;sample .netrc file to be in the root directory of the user:&lt;BR /&gt;&lt;BR /&gt;# 05/25/01 dlamar       Created for automated ftp&lt;BR /&gt;machine minga login wxyz password abcdef         &lt;BR /&gt;&lt;BR /&gt;*********************************&lt;BR /&gt;In the above wxyz is the login name on the remote machine and abcdef is the password. Make the permissions on your .netrc readable by only users/groups you desire.&lt;BR /&gt;&lt;BR /&gt;Sample ftp script:&lt;BR /&gt;&lt;BR /&gt;#       07/24/01        dlamar          Created for unix to vse ftp                              &lt;BR /&gt;ftp -v esa2 &amp;lt;&amp;lt; endl &amp;gt;&amp;gt; /home/dlamar/work/ftp.log                                                 &lt;BR /&gt;prompt                                                                                           &lt;BR /&gt;ascii                                                                                            &lt;BR /&gt;put /home/dlamar/work/testunix                                                                   &lt;BR /&gt;quit                                                                                             &lt;BR /&gt;endl                                                                                             &lt;BR /&gt;tail -14 /home/dlamar/work/ftp.log | mailx -s "FTP listing results"  someone@companyname.com&lt;BR /&gt;&lt;BR /&gt;***************************************&lt;BR /&gt;In the above, following the prompt line you can insert any cd command you need.&lt;BR /&gt;The log file created can be scannned for errors and email sent as desired.&lt;BR /&gt;i.e.&lt;BR /&gt;grep 'Not connected' $FTP_LOG 1&amp;gt;/dev/null 2&amp;gt;/dev/null                        &lt;BR /&gt;echo $? | read RC                                                            &lt;BR /&gt;grep 'full'  $FTP_LOG 1&amp;gt;/dev/null 2&amp;gt;/dev/null                                &lt;BR /&gt;echo $? | read RC1                                                           &lt;BR /&gt;grep 'fail'  $FTP_LOG 1&amp;gt;/dev/null 2&amp;gt;/dev/null                                &lt;BR /&gt;echo $? | read RC2                                                           &lt;BR /&gt;echo "The RC value is $RC" &amp;gt; $SCRIPT_HOME/messages                           &lt;BR /&gt;echo "The RC1 value is $RC1" &amp;gt;&amp;gt; $SCRIPT_HOME/messages                        &lt;BR /&gt;echo "The RC2 value is $RC2" &amp;gt;&amp;gt; $SCRIPT_HOME/messages                        &lt;BR /&gt;                                                                             &lt;BR /&gt;if [ $RC -lt 1 -o $RC1 -lt 1 -o $RC2 -lt 1 ]                                 &lt;BR /&gt;then                                                                         &lt;BR /&gt;    tail -5 $FTP_LOG &amp;gt; $SCRIPT_HOME/messages                                 &lt;BR /&gt;    mailx -s "FTP failed for $SCRIPT_HOME" someone@companyname.com &amp;lt; $FTP_LOG&lt;BR /&gt;exit                                                                         &lt;BR /&gt;else                                                                         &lt;BR /&gt;&lt;DO something="" else=""&gt;                                                          &lt;BR /&gt;fi  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Like I said, you can manipulate the script as desired and schedule in cron or call from another script, etc., etc.                                                                         &lt;BR /&gt;Used extensively in our shop both internally and to outside sources/vendors servers.&lt;BR /&gt;&lt;BR /&gt;Best of luck.&lt;BR /&gt;&lt;BR /&gt;dl&lt;BR /&gt;&lt;/DO&gt;</description>
      <pubDate>Thu, 11 Jul 2002 19:12:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-copy/m-p/2761502#M72578</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2002-07-11T19:12:45Z</dc:date>
    </item>
  </channel>
</rss>

