<?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: Cleanwork on linux with error in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982790#M30630</link>
    <description>&lt;P&gt;Since cleanwork requires to be run by root, I would also set root as the owner of the directory and give write permission only to the user (drwxr-xr-x). Otherwise other users would be able to remove log files from there and/or write garbage there.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Feb 2026 09:15:46 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2026-02-01T09:15:46Z</dc:date>
    <item>
      <title>Cleanwork on linux with error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982649#M30618</link>
      <description>Hello,&lt;BR /&gt;I wrote a short script whose purpose to use cleanwork to delete temporary files from the disk.&lt;BR /&gt;&lt;BR /&gt;#! /bin/sh&lt;BR /&gt;SERVER=`hostname -s`&lt;BR /&gt;start_date_tm=$(date +'%Y-%m-%d_%H:%M:%S')&lt;BR /&gt;&lt;BR /&gt;/opt/sas/install/SASHome/SASFoundation/9.4/utilities/bin/cleanwork /saswork1 -n -v -hostmatch -log /opt/sas/system_logs/cleanwork_log/cleanwork_${SERVER}_${start_date_tm}.log&lt;BR /&gt;&lt;BR /&gt;When I ran the script with root user on the server, I received the error:&lt;BR /&gt;/opt/sas/system_logs/cleanwork_log/cleanwork_sas04_2026-01-29_15:01:16.log : No such file or directory&lt;BR /&gt;&lt;BR /&gt;I checked and all the folders were created before running the script.&lt;BR /&gt;&lt;BR /&gt;My goal in the first stage is to have all the files that are supposed to be deleted recorded in the log file because of using the -n option.&lt;BR /&gt;&lt;BR /&gt;I would appreciate guidance on what needs to be changed.</description>
      <pubDate>Thu, 29 Jan 2026 14:47:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982649#M30618</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2026-01-29T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanwork on linux with error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982651#M30619</link>
      <description>&lt;P&gt;Your script tries to write the log to this path:&lt;/P&gt;
&lt;PRE&gt;/opt/sas/system_logs/cleanwork_log/&lt;/PRE&gt;
&lt;P&gt;but the system then complains about writing to this path:&lt;/P&gt;
&lt;PRE&gt;/opt/sas/system_logs/&lt;/PRE&gt;
&lt;P&gt;without the sub-directory cleanwork_log.&lt;/P&gt;
&lt;P&gt;Something is off here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 14:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982651#M30619</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-01-29T14:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanwork on linux with error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982652#M30620</link>
      <description>I accidentally misspelled the error in the post, I corrected it.</description>
      <pubDate>Thu, 29 Jan 2026 14:50:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982652#M30620</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2026-01-29T14:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanwork on linux with error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982678#M30621</link>
      <description>&lt;P&gt;Please run this:&lt;/P&gt;
&lt;PRE&gt;ls -ld /opt/sas/system_logs/cleanwork_log&lt;/PRE&gt;
&lt;P&gt;and post the result.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 16:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982678#M30621</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-01-29T16:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanwork on linux with error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982789#M30629</link>
      <description>I gave 777 permissions to the folder and it worked fine.</description>
      <pubDate>Sun, 01 Feb 2026 09:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982789#M30629</guid>
      <dc:creator>shlomiohana</dc:creator>
      <dc:date>2026-02-01T09:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cleanwork on linux with error</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982790#M30630</link>
      <description>&lt;P&gt;Since cleanwork requires to be run by root, I would also set root as the owner of the directory and give write permission only to the user (drwxr-xr-x). Otherwise other users would be able to remove log files from there and/or write garbage there.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Feb 2026 09:15:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Cleanwork-on-linux-with-error/m-p/982790#M30630</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-01T09:15:46Z</dc:date>
    </item>
  </channel>
</rss>

