<?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 help - removing files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779384#M76853</link>
    <description>Deepak,&lt;BR /&gt;thanks for your reply....all the directories have execute permission on them.&lt;BR /&gt;Maria.</description>
    <pubDate>Mon, 05 Aug 2002 04:35:31 GMT</pubDate>
    <dc:creator>Peter Gillis</dc:creator>
    <dc:date>2002-08-05T04:35:31Z</dc:date>
    <item>
      <title>script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779382#M76851</link>
      <description>I am trying to delete files older than 1 year old, every Sunday night (using cron to schedule). I have a log file being created that indicates files are being deleted - but I am also receiving a note via elm:&lt;BR /&gt;erase.imd2[2]: : Execute permission denied&lt;BR /&gt;erase.imd2[15]: : Execute permission denied&lt;BR /&gt;erase.imd2[2]: : Execute permission denied&lt;BR /&gt;erase.imd2[15]: : Execute permission denied&lt;BR /&gt;Why are these messages appearing?&lt;BR /&gt;&lt;BR /&gt;the job erase.imd2 has perms= 777&lt;BR /&gt;the files to be deleted are perms=666&lt;BR /&gt;(should I change perm for files to be deleted to 766?)&lt;BR /&gt;op system=hp ux 11.00&lt;BR /&gt;machine d390&lt;BR /&gt;script file attached.&lt;BR /&gt;Can anyone help here...thanks&lt;BR /&gt;Maria.</description>
      <pubDate>Mon, 05 Aug 2002 03:32:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779382#M76851</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2002-08-05T03:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779383#M76852</link>
      <description>Maria,&lt;BR /&gt;&lt;BR /&gt;You need to have execute permissions on the DIRECTORIES which you "cd" to.&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Aug 2002 03:53:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779383#M76852</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-08-05T03:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779384#M76853</link>
      <description>Deepak,&lt;BR /&gt;thanks for your reply....all the directories have execute permission on them.&lt;BR /&gt;Maria.</description>
      <pubDate>Mon, 05 Aug 2002 04:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779384#M76853</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2002-08-05T04:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779385#M76854</link>
      <description>Maria,&lt;BR /&gt;&lt;BR /&gt;Does this problem occur only when you run the job thru cron? If so, it may be an environment issue or redirection issue.&lt;BR /&gt;&lt;BR /&gt;Try doing a "set -x" at the top of the script to find out exactly which line of the script is cribbing.&lt;BR /&gt;&lt;BR /&gt;-deepak.</description>
      <pubDate>Mon, 05 Aug 2002 04:44:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779385#M76854</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-08-05T04:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779386#M76855</link>
      <description>To be more specific about Deepaks question; what user are running the cron job? And does that user have execute permission on the directory where the files are?&lt;BR /&gt;&lt;BR /&gt;Another thing. Doing a 'cd' before the find&amp;amp;rm is generally dangerous. Should the cd fail the find will be done form the users HOME directory.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Mon, 05 Aug 2002 05:02:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779386#M76855</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-08-05T05:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779387#M76856</link>
      <description>Change the find to be -print.&lt;BR /&gt;After the find perform an ls -l on the file and send this to the log file.&lt;BR /&gt;Then run an rm on this file and check the error code after the rm.&lt;BR /&gt;Write the error code to the log.&lt;BR /&gt;This way if any file fails to be removed because of permissions you can check easily.&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Aug 2002 07:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779387#M76856</guid>
      <dc:creator>Pierce Byrne_1</dc:creator>
      <dc:date>2002-08-05T07:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: script help - removing files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779388#M76857</link>
      <description>Dear maria&lt;BR /&gt;&lt;BR /&gt;Maybe i'm asking a very silly question.&lt;BR /&gt;Does the account used to run the script within cron have WRITE permissions on the directories ?&lt;BR /&gt;If not then the permission to delete files in that directory is denied. ( Thats most often what i forget to check )&lt;BR /&gt;&lt;BR /&gt;Reinhard</description>
      <pubDate>Tue, 06 Aug 2002 06:55:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-help-removing-files/m-p/2779388#M76857</guid>
      <dc:creator>Reinhard Burger</dc:creator>
      <dc:date>2002-08-06T06:55:43Z</dc:date>
    </item>
  </channel>
</rss>

