<?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 hp-ux 7.0 cp command problem... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015630#M129474</link>
    <description>cp command is quite primitive on HP-UX 7.0 and It doesn't allow me to merge into an existing directory with the same name. It has only -r option in order to copy recursively but it doesn't have -i or -f options to copy/merge into an existing directory with the same name... It simply fails to do that. Is there any command on HP-UX 7.0 to do that??? Or is there a way to upgrade only that command or a solution?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
    <pubDate>Fri, 04 Jul 2003 10:31:06 GMT</pubDate>
    <dc:creator>hakan toktas</dc:creator>
    <dc:date>2003-07-04T10:31:06Z</dc:date>
    <item>
      <title>hp-ux 7.0 cp command problem...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015630#M129474</link>
      <description>cp command is quite primitive on HP-UX 7.0 and It doesn't allow me to merge into an existing directory with the same name. It has only -r option in order to copy recursively but it doesn't have -i or -f options to copy/merge into an existing directory with the same name... It simply fails to do that. Is there any command on HP-UX 7.0 to do that??? Or is there a way to upgrade only that command or a solution?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Fri, 04 Jul 2003 10:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015630#M129474</guid>
      <dc:creator>hakan toktas</dc:creator>
      <dc:date>2003-07-04T10:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux 7.0 cp command problem...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015631#M129475</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I think you will probably struggle to find any utilities for HP-UX 7 these days, it's not been around for quite a while!  You may find that writing your own C program would be the best bet.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Darren.</description>
      <pubDate>Fri, 04 Jul 2003 10:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015631#M129475</guid>
      <dc:creator>Darren Prior</dc:creator>
      <dc:date>2003-07-04T10:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux 7.0 cp command problem...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015632#M129476</link>
      <description>Sorry but that OS version is SO OLD, you will not even get patches any more.&lt;BR /&gt;You really should look at installing a newer OS, such as HP-UX 11.00&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Jul 2003 10:39:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015632#M129476</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2003-07-04T10:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux 7.0 cp command problem...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015633#M129477</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Perhaps this is a solution:&lt;BR /&gt;&lt;BR /&gt;create a new cp script that simules cp:&lt;BR /&gt;cp &lt;ARG1&gt; &lt;ARG2&gt;&lt;BR /&gt;&lt;BR /&gt;the script is like this:&lt;BR /&gt;&lt;BR /&gt;if [ -f $2 ];then&lt;BR /&gt;   echo "The file exists. Do you want to upgrade?"&lt;BR /&gt;   read option&lt;BR /&gt;   if [ "$option" = "S" -o "$option" = s" ];then&lt;BR /&gt;      rm $2&lt;BR /&gt;      cp $1 $2&lt;BR /&gt;   fi&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;HTH, Vicente. &lt;BR /&gt;&lt;/ARG2&gt;&lt;/ARG1&gt;</description>
      <pubDate>Fri, 04 Jul 2003 10:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015633#M129477</guid>
      <dc:creator>Vicente Sanchez_3</dc:creator>
      <dc:date>2003-07-04T10:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux 7.0 cp command problem...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015634#M129478</link>
      <description>Since this system has hundred thousands of lines hp-basic code, it's not possible to upgrade the system because of the backward incompatibility of hp-basic. That's why I'm trying to find another solution...&lt;BR /&gt;&lt;BR /&gt;I've already written a script but I couldn't manage to execute it for the directories (it's simple as you write for the files) but I don't wanna remove contents of a directory, I wanna merge newer files on to it... (maybe I'll work on that if I can't manage to compile cp on 7.0)&lt;BR /&gt;&lt;BR /&gt;I've managed to compile a newer version of cp.c on linux and it's working on linux, I'll try it on HP-UX 7.0 on monday...&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your assistance...&lt;BR /&gt;&lt;BR /&gt;PS. I'll let you know about the result...</description>
      <pubDate>Fri, 04 Jul 2003 13:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015634#M129478</guid>
      <dc:creator>hakan toktas</dc:creator>
      <dc:date>2003-07-04T13:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: hp-ux 7.0 cp command problem...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015635#M129479</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;have you tried to use tar? Think you could tar the contens of the one directory, change to the destination and extract again. Should work in one commandline without writing a tarfile.&lt;BR /&gt;&lt;BR /&gt;If this works, perhaps you can set this as an alias.&lt;BR /&gt;&lt;BR /&gt;I don't have a shell at hand right now, but it could be something like:&lt;BR /&gt;&lt;BR /&gt;tar -cvf - sourcedir | (cd destination; tar -xf - )&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Regards Stefan</description>
      <pubDate>Fri, 04 Jul 2003 13:29:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/hp-ux-7-0-cp-command-problem/m-p/3015635#M129479</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2003-07-04T13:29:03Z</dc:date>
    </item>
  </channel>
</rss>

