<?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: Appending file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551152#M28112</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Yes, this can be done.  Set the 'noclobber' option.  You will be able to append but not to overwrite:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;set -o noclobber&lt;BR /&gt;typeset F=/tmp/myfile&lt;BR /&gt;echo "...appending on...`date`" &amp;gt;&amp;gt; $F&lt;BR /&gt;echo "...appending on...`date`" &amp;gt;&amp;gt; $F&lt;BR /&gt;echo "...overwriting?...`date`"  &amp;gt; $F&lt;BR /&gt;#.end.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 11 Jul 2001 11:02:07 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2001-07-11T11:02:07Z</dc:date>
    <item>
      <title>Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551146#M28106</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is there any way where any user can only append to  a file without deleting it or modifying the contents of the file. Just pure adding. &lt;BR /&gt;&lt;BR /&gt;for ex. the .sh_history file is own by the users itself. only the user can modify, add delete the contents other than root. The qts is is there any way where he user can just append to the file without deleting&lt;BR /&gt;the contents or modifying it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jul 2001 03:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551146#M28106</guid>
      <dc:creator>Dayanand Naik</dc:creator>
      <dc:date>2001-07-11T03:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551147#M28107</link>
      <description>What about script that appends a file to the file. For example have a regular file owned by the user. And then have a cron that goes and appends the data in the file to whatever file you want to append it to. &lt;BR /&gt;Prolly something like userfile.txt &amp;gt;&amp;gt; otherfile.txt. Im sure there will be more &lt;BR /&gt;solutions. And if my ideas is not too good .. Please tell me why !! &lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;Richard =)</description>
      <pubDate>Wed, 11 Jul 2001 04:42:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551147#M28107</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-07-11T04:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551148#M28108</link>
      <description>opps&lt;BR /&gt;forgot that you have to cat the file to append it to the other file so it will look like this&lt;BR /&gt;if you have more then one file to append.&lt;BR /&gt;cat userfile &amp;gt;&amp;gt; mainfile&lt;BR /&gt;cat userfile2 &amp;gt;&amp;gt; mainfile&lt;BR /&gt;&lt;BR /&gt;Richard &lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jul 2001 04:56:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551148#M28108</guid>
      <dc:creator>someone_4</dc:creator>
      <dc:date>2001-07-11T04:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551149#M28109</link>
      <description>If i have file1 and i want append to it file2 i can do:&lt;BR /&gt;&lt;BR /&gt;cat file1 file2 &amp;gt; file3&lt;BR /&gt;mv file3 file1&lt;BR /&gt;or&lt;BR /&gt;cat file2 &amp;gt;&amp;gt; file1</description>
      <pubDate>Wed, 11 Jul 2001 05:04:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551149#M28109</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2001-07-11T05:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551150#M28110</link>
      <description>the answer is no .. when you give user a permission to write, he can delete the file as well</description>
      <pubDate>Wed, 11 Jul 2001 07:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551150#M28110</guid>
      <dc:creator>Manju Kampli</dc:creator>
      <dc:date>2001-07-11T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551151#M28111</link>
      <description>&lt;BR /&gt;You could write a script (perferably a C-program), which appends to the given file. Assuming your target file is owned by user xxx who has write permission, but ther is no write permission for other users. Give the script owner xxx and chmod 4755 script, that will set the SETUID bit. (You need to be root or xxx to perform the chmod).&lt;BR /&gt;Every user with permission to execute this scrip will be able to append to you target file, but have no other permissions.&lt;BR /&gt;Klaus&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jul 2001 09:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551151#M28111</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2001-07-11T09:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551152#M28112</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Yes, this can be done.  Set the 'noclobber' option.  You will be able to append but not to overwrite:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;set -o noclobber&lt;BR /&gt;typeset F=/tmp/myfile&lt;BR /&gt;echo "...appending on...`date`" &amp;gt;&amp;gt; $F&lt;BR /&gt;echo "...appending on...`date`" &amp;gt;&amp;gt; $F&lt;BR /&gt;echo "...overwriting?...`date`"  &amp;gt; $F&lt;BR /&gt;#.end.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 11 Jul 2001 11:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551152#M28112</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-11T11:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551153#M28113</link>
      <description>Hi Day,&lt;BR /&gt;&lt;BR /&gt;James is correct. The noclobber option would stop the file accidentally overwritten.  However, if security is what your looking for, the noclobber will not do it.&lt;BR /&gt;&lt;BR /&gt;example.&lt;BR /&gt;&lt;BR /&gt;With noclobber on:&lt;BR /&gt;echo "test overwrite" &amp;gt; $F # will not overwrite file&lt;BR /&gt;&lt;BR /&gt;However,&lt;BR /&gt;echo "test overwrite" &amp;gt;| $F #will overwrite file&lt;BR /&gt;&lt;BR /&gt;If security is what you want, you will need to use the cron answer above.&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;...jcd...</description>
      <pubDate>Wed, 11 Jul 2001 12:21:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551153#M28113</guid>
      <dc:creator>Joseph C. Denman</dc:creator>
      <dc:date>2001-07-11T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551154#M28114</link>
      <description>HI&lt;BR /&gt;If security is the issue, you can use third party security softwares to restrict access to files. I had used a software called SeOS from Platinum (2 years back) which can grant access to files as create/append/delete levels per users or group.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;Prashant Deshpande.&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Jul 2001 19:10:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551154#M28114</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-07-11T19:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551155#M28115</link>
      <description>Deshpande,&lt;BR /&gt;&lt;BR /&gt;Computer Associates bought Platinum and renamed SeOS to Etrust.  It sucks rocks.  We're talking great big boulders here.  Of course, that's CA.&lt;BR /&gt;&lt;BR /&gt;We have to run Etrust to meet audit requirements.  Truthfully, though, I'd rather have my eyeballs eaten-out by rats rather than deal with SeOS any longer.&lt;BR /&gt;&lt;BR /&gt;All the best,&lt;BR /&gt;Jim</description>
      <pubDate>Wed, 11 Jul 2001 19:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551155#M28115</guid>
      <dc:creator>Jim Turner</dc:creator>
      <dc:date>2001-07-11T19:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Appending file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551156#M28116</link>
      <description>Hi Jim&lt;BR /&gt;We at that time had only restricted its use for system files and did not go to its full implementation for its very own reasons, I only wanted to suggest to look at different security softwares to serve the purpose of file access restriction.&lt;BR /&gt;&lt;BR /&gt;Prashant Deshpande.</description>
      <pubDate>Wed, 11 Jul 2001 20:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/appending-file/m-p/2551156#M28116</guid>
      <dc:creator>Deshpande Prashant</dc:creator>
      <dc:date>2001-07-11T20:12:13Z</dc:date>
    </item>
  </channel>
</rss>

