<?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: moving file across file system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026151#M746656</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If I understand your question correctly, you must first test for the absence of the file in the destination directory and if absent, then copy the file from the source directory.  Having copied the file, remove the original from the source directory.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Mon, 25 Jun 2007 10:57:34 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-06-25T10:57:34Z</dc:date>
    <item>
      <title>moving file across file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026150#M746655</link>
      <description>I want to move file from one file system to another using my C++ code.Link() function fails to do so.Sice i have to delete the file from its source after moving so symlink() is also of no use.copy and unlink is of no use to me as i want that if file is already present in destination directory then it should not be overwritten.Is there any other function in C++ that moves files from one file system to other on unix platform without overwriting it if it already exists in destination? Remember I am trying to move between different file systems.Please revert soon..</description>
      <pubDate>Mon, 25 Jun 2007 10:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026150#M746655</guid>
      <dc:creator>Ramprasath_1</dc:creator>
      <dc:date>2007-06-25T10:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: moving file across file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026151#M746656</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;If I understand your question correctly, you must first test for the absence of the file in the destination directory and if absent, then copy the file from the source directory.  Having copied the file, remove the original from the source directory.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 25 Jun 2007 10:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026151#M746656</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-06-25T10:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: moving file across file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026152#M746657</link>
      <description>There is really no built-in function to do this. If you are moving, copying, or linking files within C++ or C, you are expected to do all the tests and operations that "mv -i" , for example, would do for you.&lt;BR /&gt;&lt;BR /&gt;Of course, one easy way to do this would be to build a shell script "on the fly" and then invoke the system() function that executes your script otherwise you will have to do tests and operations in low-level system calls that your small script would do implicitly.</description>
      <pubDate>Mon, 25 Jun 2007 11:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026152#M746657</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-25T11:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: moving file across file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026153#M746658</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;one possiblity is to use system() to use /usr/bin/cp to perform that task.&lt;BR /&gt;&lt;BR /&gt;Otherwise I think you'll have to code it by yourself, e.g. using open(), read() and write().&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Mon, 25 Jun 2007 12:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026153#M746658</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-06-25T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: moving file across file system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026154#M746659</link>
      <description>(It would be helpful if you had 2 or 1 spaces after each period.)&lt;BR /&gt;&lt;BR /&gt;As Clay suggests, you either have to do all of that work, or invoke a script or system(3) to do that.  You can even put an "if" in your system command string.</description>
      <pubDate>Tue, 26 Jun 2007 01:05:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/moving-file-across-file-system/m-p/4026154#M746659</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-06-26T01:05:33Z</dc:date>
    </item>
  </channel>
</rss>

