Discussion Locked

design a ahell script & a crontab files

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
How to write a shell script for an simple house keeping job which will find all files older than 7 days and remove it from the system. Then write down the format in crontab which able to call your script every night at 23:59.

1 reply

by skizz

If you delete "all files" older than 7 days, pretty shortly after running that, you won't have a system left :)

Look at the "find" command

This discussion is closed to new replies.