rrrrr has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I have tried using find command in perl script to delete the folders older than 14 days. Its not showing error but not deleting the folder. Kindly assist me.The below code not showing error but not deleting my old folders
my $command="`find /D/archieve/Test -ctime +14 -exec rm -rf {} \{\} \`";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: To Delete folders older than 14 days.-Want one liner command
by kcott (Archbishop) on Sep 14, 2012 at 08:14 UTC | |
by rrrrr (Novice) on Sep 17, 2012 at 05:37 UTC | |
by kcott (Archbishop) on Sep 17, 2012 at 07:26 UTC | |
by rrrrr (Novice) on Sep 18, 2012 at 03:16 UTC | |
|
Re: To Delete folders older than 14 days.-Want one liner command
by Anonymous Monk on Sep 14, 2012 at 05:31 UTC | |
|
Re: To Delete folders older than 14 days.-Want one liner command
by BillKSmith (Monsignor) on Sep 14, 2012 at 14:46 UTC |