<?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 to delete files in Endpoint</title>
    <link>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149512#M5693</link>
    <description>&lt;P&gt;If you got it from TAC, please contact them again&amp;nbsp;8)&lt;/img&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2022 08:09:45 GMT</pubDate>
    <dc:creator>G_W_Albrecht</dc:creator>
    <dc:date>2022-05-26T08:09:45Z</dc:date>
    <item>
      <title>script to delete files</title>
      <link>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149505#M5692</link>
      <description>&lt;P&gt;I received script from TAC to delete temp files from the tmp directory , but the script runs forever and it does not delete the files .&lt;/P&gt;&lt;P&gt;I am not sure if the script is correct .Can anyone check this script if it is correct?&lt;/P&gt;&lt;P&gt;It looks the rm-f $file is in echo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;for file in *; do file_size=$(du $file | awk '{print $1}'); if [ $file_size == 0 ]; then echo "Deleting empty file $file with file size $file_size!"; echo "rm -f $file"; fi;done&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 06:18:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149505#M5692</guid>
      <dc:creator>yosefgher</dc:creator>
      <dc:date>2022-05-26T06:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: script to delete files</title>
      <link>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149512#M5693</link>
      <description>&lt;P&gt;If you got it from TAC, please contact them again&amp;nbsp;8)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 08:09:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149512#M5693</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2022-05-26T08:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: script to delete files</title>
      <link>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149514#M5694</link>
      <description>&lt;P&gt;I tried to contact TAC, they&amp;nbsp; do not respond.&lt;/P&gt;&lt;P&gt;Just want to check if the&amp;nbsp; script is correct&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 08:23:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149514#M5694</guid>
      <dc:creator>yosefgher</dc:creator>
      <dc:date>2022-05-26T08:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: script to delete files</title>
      <link>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149537#M5695</link>
      <description>&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script is fine (but is incomplete, there is missing a part from the beginning), it's just returning what you need to remove - there the echo.&lt;/P&gt;&lt;P&gt;Not sure if that is the purpose, and you should go over the RM lines and see if you are OK to remove those files or not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 14:55:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149537#M5695</guid>
      <dc:creator>Sorin_Gogean</dc:creator>
      <dc:date>2022-05-26T14:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: script to delete files</title>
      <link>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149538#M5696</link>
      <description>&lt;P&gt;Thank you Sorin,&lt;/P&gt;&lt;P&gt;That is what i suspected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2022 14:59:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Endpoint/script-to-delete-files/m-p/149538#M5696</guid>
      <dc:creator>yosefgher</dc:creator>
      <dc:date>2022-05-26T14:59:12Z</dc:date>
    </item>
  </channel>
</rss>

