<?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: Transfer problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235691#M329262</link>
    <description>&lt;!--!*#--&gt;&amp;gt;  I tried mdelete , it is OK to remove the&lt;BR /&gt;&amp;gt; file in remote site , but still show the&lt;BR /&gt;&amp;gt; below message after run it , can advise&lt;BR /&gt;&amp;gt; what is wrong ?  [...]&lt;BR /&gt;&lt;BR /&gt;Not without some useful information.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; To run a script you must exit ftp.&lt;BR /&gt;&lt;BR /&gt;Not really.  It might help if you would read&lt;BR /&gt;"man ftp", but I'm beginning to doubt it.&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt; COMMANDS&lt;BR /&gt;[...]&lt;BR /&gt;      ![command [args]]&lt;BR /&gt;           Invoke a shell on the local host. [...]&lt;BR /&gt;&lt;BR /&gt;Have you considered hiring someone who can do&lt;BR /&gt;your job for you?</description>
    <pubDate>Fri, 18 Jul 2008 10:34:07 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-07-18T10:34:07Z</dc:date>
    <item>
      <title>Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235674#M329245</link>
      <description>To ensure the file can be transferred to remote server , I try to write a script to do transfer file from local server ( directory: dir1 ) to remote server ( directory: dir1 ) , then get the files back from remote server ( directory: dir1 ) to local server ( directory: dir2 ), then compare the files in local server ( directory: dir1 &amp;amp; dir2 ) , if found any files missing , then send me alert . &lt;BR /&gt;&lt;BR /&gt;I have below script to do it ,  when run it , the file could be transfer to remote server , but can't get it back , it pops "Failed to open file." , it seems can't find the file in remote server , can advise what is the problem ? thx&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ftp remote_server&amp;lt;&lt;EOF&gt;&lt;/EOF&gt;prompt off&lt;BR /&gt;lcd dir1&lt;BR /&gt;passive&lt;BR /&gt;cd dir1&lt;BR /&gt;put *&lt;BR /&gt;lcd dir2&lt;BR /&gt;get *&lt;BR /&gt;EOF</description>
      <pubDate>Thu, 17 Jul 2008 11:04:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235674#M329245</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-17T11:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235675#M329246</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;try mget and mput. &lt;BR /&gt;&lt;BR /&gt;Kenan.</description>
      <pubDate>Thu, 17 Jul 2008 11:13:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235675#M329246</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-07-17T11:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235676#M329247</link>
      <description>thx Kenan Erdey  ,&lt;BR /&gt;&lt;BR /&gt;you are right , it works now , I have a few more questions , &lt;BR /&gt;&lt;BR /&gt;1. it could get back the file to dir2 now , can advise how to compare the files in dir1 and dir2 , if found any file difference , then send me mail ? &lt;BR /&gt;&lt;BR /&gt;2. do you think is it a good way to check the file transfer successful or not ? thx&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 11:28:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235676#M329247</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-17T11:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235677#M329248</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have a look at diff command. you can write a script using it and mailx command. diff can also compare files so if there has been a problem because of transfer, you'll be aware of it. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2008 12:04:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235677#M329248</guid>
      <dc:creator>Kenan Erdey</dc:creator>
      <dc:date>2008-07-17T12:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235678#M329249</link>
      <description>thx kenan ,&lt;BR /&gt;&lt;BR /&gt;diff is file content comparsion , as this is binary file , I think compare the file existence will do , if any files is not exist in dir2 , then send me alert , can advise how to do it ? thx</description>
      <pubDate>Thu, 17 Jul 2008 12:17:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235678#M329249</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-17T12:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235679#M329250</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;could advise what can i do ? thx</description>
      <pubDate>Thu, 17 Jul 2008 13:58:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235679#M329250</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-17T13:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235680#M329251</link>
      <description>&amp;gt; diff is file content comparsion , as this&lt;BR /&gt;&amp;gt; is binary file , I think compare the file&lt;BR /&gt;&amp;gt; existence will do [...]&lt;BR /&gt;&lt;BR /&gt;Why would you think this?  Are non-text files&lt;BR /&gt;somehow more robust than text files?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2. do you think is it a good way to check&lt;BR /&gt;&amp;gt; the file transfer successful or not ?&lt;BR /&gt;&lt;BR /&gt;If the FTP server says "2xy", I'd probably&lt;BR /&gt;relax and be happy.  Or, I'd package the&lt;BR /&gt;files using a program like Info-ZIP Zip,&lt;BR /&gt;which includes some data integrity info, so&lt;BR /&gt;that UnZip will complain if the archive is&lt;BR /&gt;corrupt.&lt;BR /&gt;&lt;BR /&gt;The best solution depends on details of the&lt;BR /&gt;requirements which you have not supplied.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; could advise what can i do ?&lt;BR /&gt;&lt;BR /&gt;More than you've already been advised?  Not&lt;BR /&gt;really, not for free.  A forum search for&lt;BR /&gt;"mailx" should find some scripts which send&lt;BR /&gt;e-mail, if that part is still a mystery.</description>
      <pubDate>Thu, 17 Jul 2008 14:10:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235680#M329251</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-17T14:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235681#M329252</link>
      <description>Or is this all simply more of this?:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1248225" target="_blank"&gt;http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1248225&lt;/A&gt;</description>
      <pubDate>Thu, 17 Jul 2008 14:16:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235681#M329252</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-17T14:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235682#M329253</link>
      <description>thx replies,&lt;BR /&gt;&lt;BR /&gt;I wrote it already ,  but still have problem ,&lt;BR /&gt;&lt;BR /&gt;1. after get back the files , I want to remove all files on remote site , I tried to use del file_name is OK to remove the file , but if I want to remove all files in dir1 on remote site , what can i do ? &lt;BR /&gt;&lt;BR /&gt;2. use diff will compare the file includes file and sub-directory , how can i only compare files ? thx</description>
      <pubDate>Fri, 18 Jul 2008 02:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235682#M329253</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-18T02:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235683#M329254</link>
      <description>&amp;gt; [...] but still have problem [...]&lt;BR /&gt;&lt;BR /&gt;Yes, and your main problem seems to be that&lt;BR /&gt;you haven't read "man ftp" or "man diff".&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] if I want to remove all files [...]&lt;BR /&gt;&lt;BR /&gt;"man ftp".  Remember "mget" and "mput"?  Try&lt;BR /&gt;"mdelete"?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] diff will compare the file includes&lt;BR /&gt;&amp;gt; file and sub-directory [...]&lt;BR /&gt;&lt;BR /&gt;"man diff".  As usual, it would help if you&lt;BR /&gt;showed the actual command you used, as&lt;BR /&gt;different commands can behave differently.&lt;BR /&gt;&lt;BR /&gt;"diff -r" compares directories recursively.&lt;BR /&gt;"diff" without "-r" compares two directories&lt;BR /&gt;or two files, doesn't it?</description>
      <pubDate>Fri, 18 Jul 2008 03:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235683#M329254</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-18T03:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235684#M329255</link>
      <description>thx reply&lt;BR /&gt;&lt;BR /&gt;I tried mdelete , it is OK to remove the file in remote site , but still show the below message after run it , can advise what is wrong ? thx&lt;BR /&gt;&lt;BR /&gt;Delete operation failed.</description>
      <pubDate>Fri, 18 Jul 2008 04:25:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235684#M329255</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-18T04:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235685#M329256</link>
      <description>I have one more question , &lt;BR /&gt;&lt;BR /&gt;I edited this ftp script , it can put and get the files well ,if I want to add a comparsion script (eg. comparsion_script) to this ftp script , can advise what can i do ? Thx&lt;BR /&gt;&lt;BR /&gt;ftp remote_server&amp;lt;&lt;EOF&gt;&lt;/EOF&gt;prompt off&lt;BR /&gt;lcd dir1&lt;BR /&gt;passive&lt;BR /&gt;cd dir1&lt;BR /&gt;put *&lt;BR /&gt;lcd dir2&lt;BR /&gt;get *&lt;BR /&gt;mdelete *&lt;BR /&gt;comparsion_script&lt;BR /&gt;EOF&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jul 2008 06:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235685#M329256</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-18T06:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235686#M329257</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;what I want is after mdelete the file , then run the comparsion script , if I just add the script name to the ftp script , it will pop "?Invalid command" , can advise what can i do ?ã  ï½ ï½ ï½</description>
      <pubDate>Fri, 18 Jul 2008 07:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235686#M329257</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-18T07:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235687#M329258</link>
      <description>&amp;gt;but still show the below message after run it, can advise what is wrong?&lt;BR /&gt;&lt;BR /&gt;You may not have permission to remove files on the remote system.  Can you manually use "del" on a single file?  Can you manually use "mdel" on another single file?&lt;BR /&gt;What does "ls -d ." show?</description>
      <pubDate>Fri, 18 Jul 2008 07:42:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235687#M329258</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-18T07:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235688#M329259</link>
      <description>&amp;gt;then run the comparison script&lt;BR /&gt;&lt;BR /&gt;To run a script you must exit ftp.</description>
      <pubDate>Fri, 18 Jul 2008 07:46:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235688#M329259</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-18T07:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235689#M329260</link>
      <description>thx dennis,&lt;BR /&gt;&lt;BR /&gt;To run a script you must exit ftp.&lt;BR /&gt;&lt;BR /&gt;if exit ( bye ), how to run its next script ? thx</description>
      <pubDate>Fri, 18 Jul 2008 07:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235689#M329260</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-07-18T07:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235690#M329261</link>
      <description>&amp;gt;how to run its next script? &lt;BR /&gt;&lt;BR /&gt;Your current script has:&lt;BR /&gt;ftp remote_server&amp;lt;&lt;EOF&gt;&lt;/EOF&gt;...&lt;BR /&gt;mdelete *&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;You either invoke your "comparsion_script" here or put the compare commands inline.</description>
      <pubDate>Fri, 18 Jul 2008 08:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235690#M329261</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-18T08:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235691#M329262</link>
      <description>&lt;!--!*#--&gt;&amp;gt;  I tried mdelete , it is OK to remove the&lt;BR /&gt;&amp;gt; file in remote site , but still show the&lt;BR /&gt;&amp;gt; below message after run it , can advise&lt;BR /&gt;&amp;gt; what is wrong ?  [...]&lt;BR /&gt;&lt;BR /&gt;Not without some useful information.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; To run a script you must exit ftp.&lt;BR /&gt;&lt;BR /&gt;Not really.  It might help if you would read&lt;BR /&gt;"man ftp", but I'm beginning to doubt it.&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt; COMMANDS&lt;BR /&gt;[...]&lt;BR /&gt;      ![command [args]]&lt;BR /&gt;           Invoke a shell on the local host. [...]&lt;BR /&gt;&lt;BR /&gt;Have you considered hiring someone who can do&lt;BR /&gt;your job for you?</description>
      <pubDate>Fri, 18 Jul 2008 10:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235691#M329262</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-07-18T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235692#M329263</link>
      <description>&amp;gt;&amp;gt; To run a script you must exit ftp.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Not really&lt;BR /&gt;&lt;BR /&gt;Oops, right.  But ! would be next to useless at the end of ftp, when you can just exit back to the shell.&lt;BR /&gt;And just about the only commands I use are !pwd and !ls.  Otherwise when interactive I use control-Z and use a real shell.</description>
      <pubDate>Fri, 18 Jul 2008 12:02:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235692#M329263</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-07-18T12:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transfer problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235693#M329264</link>
      <description>This is NOT a good idea!  You need to get all thoughts of ftp out of your mind, and use the secure shell equivalent, scp.  This command scripts much more easily, it is secure and does not send passwords unencrypted as ftp does.&lt;BR /&gt;&lt;BR /&gt;Rather than comparing the files before and after the transfer, use the sum command to get a checksum.  &lt;BR /&gt;&lt;BR /&gt;CSUM1=`sum $FILE|awk '{ print $1 }'`&lt;BR /&gt;scp $FILE $DESTHOST:/$DESTDIR&lt;BR /&gt;CSUM2=`ssh $DESTHOST sum $DESTDIR/$FILE|awk '{ print $1 }'`&lt;BR /&gt;&lt;BR /&gt;if test "$CSUM1" -ne "$CSUM2"&lt;BR /&gt;then&lt;BR /&gt;       echo "There is a problem with the file transfer."&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;If you have not yet installed or configured ssh on your systems, I have previously posted instructions on how to to do this.&lt;BR /&gt;&lt;BR /&gt;Chris&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:39:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/transfer-problem/m-p/4235693#M329264</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2008-07-18T14:39:28Z</dc:date>
    </item>
  </channel>
</rss>

