Search Results

Search: Posts Made By: annamalai77
3,039
Posted By annamalai77
Hi Cero, Thanks for the update once again. ...
Hi Cero,

Thanks for the update once again.

Well i need to find all the directories older than x days and housekeep them. the problem i am facing is, only the child directory D12 is deleted...
3,039
Posted By annamalai77
Hi Cero, Yes, PATH Variable. The PATH has...
Hi Cero,

Yes, PATH Variable. The PATH has $HOME/bin included which has a value set and this gets appended when i run the script from command line.

But when the script is invoked via a batch...
3,039
Posted By annamalai77
Hi Pickett / Cero, Thanks for your valuable...
Hi Pickett / Cero,

Thanks for your valuable inputs.

Instead of "-depth" clause, can i use -prune which will just list only the parent directory?

Also could it be due to path issues as the...
3,039
Posted By annamalai77
Hi the subdirectories and parent directory...
Hi

the subdirectories and parent directory have the same dates

eg.

Directory D1 - D12, F1, F2, F3, F4, F5

D1 Parent Directory
D12 - Sub-Directory
F1, F2.... - Files in Directory...
2,236
Posted By annamalai77
Find and delete not working
Hi,

I have a .ksh script which finds all the directories older than 84 days and tries to housekeep. Below is the command used

find * -depth -type d -ctime +84 -exec rm -rf {} \;

The above...
3,039
Posted By annamalai77
Housekeeping Not Working
Hi,

I have a .ksh script which finds all the directories older than 84 days and tries to housekeep. Below is the command used

find * -depth -type d -ctime +84 -exec rm -rf {} \;

The above...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 10:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy