PDA

View Full Version : tmpwatch for SLES 11 SP3?



ithawtewrong
08-Jul-2015, 17:49
I checked the package list here:

https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=index_all

I'm not seeing tmpwatch. Is there a package for SLES 11 SP3 that would accomplish the same thing?
I just need a process to auto delete files in a directory after a certain time period. I suppose I could script something from scratch, but thought a package if one existed, would be better.

Thanks

malcolmlewis
09-Jul-2015, 00:20
On Wed 08 Jul 2015 04:54:02 PM CDT, ithawtewrong wrote:


I checked the package list here:

https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=index_all

I'm not seeing tmpwatch. Is there a package for SLES 11 SP3 that would
accomplish the same thing?
I just need a process to auto delete files in a directory after a
certain time period. I suppose I could script something from scratch,
but thought a package if one existed, would be better.

Thanks




Hi
You can always grab the 2.11 src rpm and rebuild locally and install.
all unsupported of course?
https://software.opensuse.org/package/tmpwatch?search_term=tmpwatch

--
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel
3.12.43-52.6-default If you find this post helpful and are logged into
the web interface, please show your appreciation and click on the star
below... Thanks!

smflood
09-Jul-2015, 12:01
On 08/07/2015 17:54, ithawtewrong wrote:

> I checked the package list here:
>
> https://www.suse.com/LinuxPackages/packageRouter.jsp?product=server&version=11&service_pack=sp3&architecture=x86_64&package_name=index_all
>
> I'm not seeing tmpwatch. Is there a package for SLES 11 SP3 that would
> accomplish the same thing?
> I just need a process to auto delete files in a directory after a
> certain time period. I suppose I could script something from scratch,
> but thought a package if one existed, would be better.

Which directory do you want to clean up? You can achieve the above by
configuring cron to clean up directories via /etc/sysconfig/cron without
the need for tmpwatch. Settings to change in /etc/sysconfig/cron are
MAX_DAYS_IN_TMP, MAX_DAYS_IN_LONG_TMP, TMP_DIRS_TO_CLEAR, and
LONG_TMP_DIRS_TO_CLEAR.

HTH.
--
Simon
SUSE Knowledge Partner

------------------------------------------------------------------------
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.
------------------------------------------------------------------------