<?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: files transfer in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598898#M855344</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As every one said, I would rather go with rcp or scp ( If security is a concern) &lt;BR /&gt;you can use chksum to see the files copied properly or not&lt;BR /&gt;for rcp you have to deal with .rhosts file&lt;BR /&gt;&lt;BR /&gt;GoodLuck&lt;BR /&gt;-USA..</description>
    <pubDate>Mon, 22 Oct 2001 15:25:30 GMT</pubDate>
    <dc:creator>Uday_S_Ankolekar</dc:creator>
    <dc:date>2001-10-22T15:25:30Z</dc:date>
    <item>
      <title>files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598893#M855339</link>
      <description>I have to automate the transfer of files between two HP 9000 servers. It is necessary to verify continuously if files were put (deposited) on the first server and to move them on the second server. How to proceed: ftp, rcp, ...? Your advices will be appreciated. Thank you in advance.&lt;BR /&gt;Nora</description>
      <pubDate>Mon, 22 Oct 2001 14:59:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598893#M855339</guid>
      <dc:creator>Admin.SIF</dc:creator>
      <dc:date>2001-10-22T14:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598894#M855340</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If you are moving Unix-to-Unix I think I'd script the process with 'rcp'.  If you really want to verify what you copied is what you think you copied, include remote shell commands to 'chsum' the file on both servers and compare the results.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 22 Oct 2001 15:05:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598894#M855340</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-22T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598895#M855341</link>
      <description>Nora,&lt;BR /&gt;&lt;BR /&gt;You can either do through automated ftp or rcp. If you are particular about security, you can install ssh and use ssh too. You can accomplish your task using either of them. If you use ftp, you can check the files on the remote system using ls or dir command compare them against what you have on the local and copy only the difference. You need to do a little bit of scripting that does the following.&lt;BR /&gt;&lt;BR /&gt;If you use ftp:&lt;BR /&gt;&lt;BR /&gt;1) In the first ftp session,you will get a list of files through ftp's ls command. Then you compare them against the local files and generate a diff of files.&lt;BR /&gt;2) in the next ftp session, you will use the above list of files to 'get' from the remote system.&lt;BR /&gt;&lt;BR /&gt;It's easier with /remsh/rcp/ssh/scp also&lt;BR /&gt;&lt;BR /&gt;1) Check the files using remsh/ssh command. And determine the difference.&lt;BR /&gt;2) Use rcp/scp to copy the files.&lt;BR /&gt;&lt;BR /&gt;My recommendation would be to use ssh/scp to get the files. If security is not a concern, you can easily do it through rcp/remsh. It's better to use r'commands than ftp as you will need to hardcode the passwords somewhere.&lt;BR /&gt;&lt;BR /&gt;There are other softwares like Connect Direct etc., to accomplish similary kind of tasks.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Mon, 22 Oct 2001 15:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598895#M855341</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2001-10-22T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598896#M855342</link>
      <description>It would be best to use rcp or scp from one server to get the file from the other.  scp would probably be a better choice as it has better security.  But in either case, you could do something like this.&lt;BR /&gt;&lt;BR /&gt;#make sure no one is using the file.&lt;BR /&gt;RC=$(fuser -u $FILENAME 2&amp;gt;/dev/null |wc -l)&lt;BR /&gt;&lt;BR /&gt;if [[ $RC = 0 ]]&lt;BR /&gt;then &lt;BR /&gt;  ssp $FILENAME destsvr:&lt;FULL path=""&gt;&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;The fuser command assures that no one is using the file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;-Santosh&lt;BR /&gt;&lt;/FULL&gt;</description>
      <pubDate>Mon, 22 Oct 2001 15:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598896#M855342</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-22T15:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598897#M855343</link>
      <description>You can certainly write scripts to automate this with ssh or ftp, but if you can establish a trust (.rhost) relationship between a user on each system with read priveleges for the files, then use rdist.&lt;BR /&gt;&lt;BR /&gt;Rdist will do exactly what you want.</description>
      <pubDate>Mon, 22 Oct 2001 15:24:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598897#M855343</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2001-10-22T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598898#M855344</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As every one said, I would rather go with rcp or scp ( If security is a concern) &lt;BR /&gt;you can use chksum to see the files copied properly or not&lt;BR /&gt;for rcp you have to deal with .rhosts file&lt;BR /&gt;&lt;BR /&gt;GoodLuck&lt;BR /&gt;-USA..</description>
      <pubDate>Mon, 22 Oct 2001 15:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598898#M855344</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2001-10-22T15:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598899#M855345</link>
      <description>HI:&lt;BR /&gt;&lt;BR /&gt;When you say continously that could get to be a real resource hog; if you back that off to every few minutes then it becomes more manageable. I have a perl script (fileage.pl) I have used for a long time and it becomes the heart of my proposed solution. It returns a 0 if a file has NOT been modified with a certain period of time and non-zero otherwise.&lt;BR /&gt;&lt;BR /&gt;Here is my cut at this but I don't guarantee the syntax is correct as I am doing this 'on the fly':&lt;BR /&gt;&lt;BR /&gt;DIR=/xxxx/yyy&lt;BR /&gt;REM_HOST=bugs&lt;BR /&gt;INTERVAL=600&lt;BR /&gt;&lt;BR /&gt;cd ${DIR}&lt;BR /&gt;ls | while read X&lt;BR /&gt;  do&lt;BR /&gt;    FNAME=${DIR}/${X}&lt;BR /&gt;    fileage.pl -m -s ${INTERVAL} ${FNAME}&lt;BR /&gt;    STAT=$?&lt;BR /&gt;    if [ ${STAT} -ne 0 ]&lt;BR /&gt;       then&lt;BR /&gt;         rcp -p ${FNAME} ${REMHOST}:${FNAME}&lt;BR /&gt;       fi&lt;BR /&gt;  done&lt;BR /&gt;&lt;BR /&gt;You could add more to this to check to see if you need to delete a file or if a file has not been modified but is not found on the remote server then do the transfer. In the above example, this should be set up as a cronjob fired off every 10 minutes (600 seconds).&lt;BR /&gt;&lt;BR /&gt;I would use rcp as it is much easier to script.&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Oct 2001 15:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598899#M855345</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-22T15:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598900#M855346</link>
      <description>rcp or scp is easier to automate than ftp.  The primary advantage of scp is encryption of the file during transfer.  The userid and password (if used) are also encrypted when initiating the connection.  If you use scp to encrypt the files during transmission then it will be slower than rcp.&lt;BR /&gt;&lt;BR /&gt;You might want to look into rdist or if you want to send files both ways, rsync.  Both are available at HP software porting and archive centers.  One is &lt;A href="http://hpux.cs.utah.edu/" target="_blank"&gt;http://hpux.cs.utah.edu/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 22 Oct 2001 15:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598900#M855346</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-10-22T15:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598901#M855347</link>
      <description>Nora,&lt;BR /&gt;If your question is in 'how to detect when the files first arrive on the 1st server' (instead of how to copy them to the second server), then it is important to know how the files arrive on the 1st server, and what OS is sending them.  For that, I would recommend  the following:&lt;BR /&gt;1)Set up a dumb printer on your 1st UNIX server.&lt;BR /&gt;2)Then, set up a remote printer on wherever your files originate from, to do remote print to that new dumb printer on your 1st UNIX server.  That will get your files over safely to your 1st UNIX box, and your dumb printer driver will know the minute they arrive.&lt;BR /&gt;3)Edit your 1st UNIX box's newly set up dumb driver to skip past fist 5 arguments (shift;shift;shift;shift;shift), and you'll have the name of the temporary spool file containing your newly arrived text.&lt;BR /&gt;4)Now you may copy or rcp or ftp it to your second server.  There is no need to poll for your file's arrival - the lp spooler will do it for you.&lt;BR /&gt;Notes:  This will only work with flat ASCII text files.  Your dumb print driver will be found in /usr/spool/lp/interface/your_printer_name.  If your arriving file is of large size, inside your print driver you may need to 'sleep' until you are sure that the whole file arrives, before you can copy it on.  Also, with this remote printer setup, you can receive files from any other OS types capable of "lpr/lpd" (like IBM, NT, etc.)&lt;BR /&gt;Good luck.&lt;BR /&gt;Irine Gibilisco</description>
      <pubDate>Mon, 22 Oct 2001 17:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598901#M855347</guid>
      <dc:creator>Irine Gibilisco</dc:creator>
      <dc:date>2001-10-22T17:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: files transfer</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598902#M855348</link>
      <description>Thank you very much for your answers. I am going "to compile" all this and I shall return to you for the result ... and for points which are deserved well ! I worked on another solution, using NFS and export the directory to avoid the transfer of files. Thank you Clay for your scripts, thanks to all naturally, I find that formidable to dedicate from his(her) time to the others. &lt;BR /&gt;Best regards,&lt;BR /&gt;Nora</description>
      <pubDate>Mon, 22 Oct 2001 19:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/files-transfer/m-p/2598902#M855348</guid>
      <dc:creator>Admin.SIF</dc:creator>
      <dc:date>2001-10-22T19:53:08Z</dc:date>
    </item>
  </channel>
</rss>

