<?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 to copy in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635462#M722624</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What sort of links are you referring to?&lt;BR /&gt;&lt;BR /&gt;What is the intention of this regular file transfer ie. as a central storage area so that the local storage can be freed? That will decide whether NFS would be suitable for your scenerio. &lt;BR /&gt;&lt;BR /&gt;If these files need to be accessed by the same person who uploaded it later in time, NFS and NIS would be appropriate, with respect to ease of use for the user and ease of maintenance for the administrator.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
    <pubDate>Wed, 26 Dec 2001 09:36:56 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2001-12-26T09:36:56Z</dc:date>
    <item>
      <title>script to copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635459#M722621</link>
      <description>Friends, &lt;BR /&gt; Our users always copy files (20gb +) from one machine to other. They do this copy as non-root user. I would like to facilitate them with a script or program that ensures following &lt;BR /&gt;1) Check space availablity on the target machine for a sucessful copy.&lt;BR /&gt;2)Which file is being copied and how many files are left to copy.( Continuous Update)&lt;BR /&gt;3)Space available one the target (Continuous update)&lt;BR /&gt;4)a log which tells which files were unable to copy and for what reason. &lt;BR /&gt;&lt;BR /&gt;Basically I require your valueble inputs on &lt;BR /&gt;1) Do I need to write a C-program or a Shell Script will do for this. &lt;BR /&gt;2) How can I make this script work for flavours like HP, Sun, Linux. &lt;BR /&gt;&lt;BR /&gt;If you already have some kind of script which does any of the above, I can customize it suit my environment. &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;</description>
      <pubDate>Wed, 26 Dec 2001 07:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635459#M722621</guid>
      <dc:creator>Madhu Sudhan_1</dc:creator>
      <dc:date>2001-12-26T07:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: script to copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635460#M722622</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Will you be considering NFS?&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Wed, 26 Dec 2001 07:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635460#M722622</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-26T07:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: script to copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635461#M722623</link>
      <description>Steven, &lt;BR /&gt;Will there be any problem with links if I use nfs ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Dec 2001 09:26:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635461#M722623</guid>
      <dc:creator>Madhu Sudhan_1</dc:creator>
      <dc:date>2001-12-26T09:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: script to copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635462#M722624</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What sort of links are you referring to?&lt;BR /&gt;&lt;BR /&gt;What is the intention of this regular file transfer ie. as a central storage area so that the local storage can be freed? That will decide whether NFS would be suitable for your scenerio. &lt;BR /&gt;&lt;BR /&gt;If these files need to be accessed by the same person who uploaded it later in time, NFS and NIS would be appropriate, with respect to ease of use for the user and ease of maintenance for the administrator.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Wed, 26 Dec 2001 09:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635462#M722624</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-26T09:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: script to copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635463#M722625</link>
      <description>Steven, &lt;BR /&gt;   Iam refering to symbolic or hard links. &lt;BR /&gt;&lt;BR /&gt;The pupose of this copy is to clone Oracle Apps from Production to Test to test out patches etc.,&lt;BR /&gt;&lt;BR /&gt;Regards, &lt;BR /&gt;</description>
      <pubDate>Wed, 26 Dec 2001 10:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635463#M722625</guid>
      <dc:creator>Madhu Sudhan_1</dc:creator>
      <dc:date>2001-12-26T10:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: script to copy</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635464#M722626</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;One way is to use dual links (pvlinks) to mirrored LVs. Resynchronize the LVs with their mirrors once a day from the production system to the test system via the links. Keep the mirrors split for the rest of the day. However, initial setup can be quite tedious unless the test machine is the exact same configuration as the production (eg. no. of disk controllers).&lt;BR /&gt;&lt;BR /&gt;For the script method if you insist on it,&lt;BR /&gt;&lt;BR /&gt;1) Check space availablity on the target machine for a sucessful copy. &lt;BR /&gt;&lt;BR /&gt;You have to use a combination of bc or awk (for summing up the sizes) and SSH to connect to the target machine to perform a bc or awk on the target machine.&lt;BR /&gt;&lt;BR /&gt;2)Which file is being copied and how many files are left to copy.( Continuous Update) &lt;BR /&gt;&lt;BR /&gt;SCP gives you a continuous update via a progress bar as the transfer takes place. So does NCFTP. Both does not come default with HP-UX.&lt;BR /&gt;&lt;BR /&gt;4)a log which tells which files were unable to copy and for what reason. &lt;BR /&gt;&lt;BR /&gt;Check the exit code of the SCP command and for each exit code, echo a detailed explanation of the error.&lt;BR /&gt;&lt;BR /&gt;1) Do I need to write a C-program or a Shell Script will do for this. &lt;BR /&gt;2) How can I make this script work for flavours like HP, Sun, Linux. &lt;BR /&gt;&lt;BR /&gt;A shell script needs only a shell interpreter. A C program still needs compilation on the target system if it is a different platform and version (re-compilation). Personally, I prefer a shell script because it is more flexibile and portable (works with the built-in shell interpreter on all HP, Sun and Linux platforms).&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Wed, 26 Dec 2001 12:55:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-copy/m-p/2635464#M722626</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-26T12:55:01Z</dc:date>
    </item>
  </channel>
</rss>

