Re: Petal temp files
Olaf Buwen <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.petal |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 find /tmp -name 'petal_*' -mtime +30 | xargs rm should find and delete all petal files in /tmp older than 30 days. but fear filenames like 'petal_fake;rm -rf ..;#ignore' if you feed the list to a shell script! yours Olaf William McKee schrieb: | On Tue, Feb 15, 2005 at 03:30:07PM +0000, Chris Croome wrote: | |>I'm in process of deleting 420095 /tmp/petal_* off a server and it's not |>so easy to do when you have more files than you shell can cope with (I |>had to find the files, write the results to a file and trun that into a |>deletion script). | | | Yeah, I've run into this problem also. Seems like I found a way around | the shell globbing limitations but don't recall now as I don't need it | (see below). | | | |>What do other people do, have cron jobs that delete the old ones once a |>week or something? | | | Nightly! | | | William | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCEmB7hbOUFKEaGaURAm7xAJ9zOZ1tTw4zsvmVmNTQZgB5tU4HKACgt6Lc tQAziZWw8ZVdJxBGYQ7amE4= =tNsH -----END PGP SIGNATURE-----