How to create a shell script to remove the files on solaris server at 00000hrs?

Hi folks,

As per mentioned in the title, how to create a shell script to delete those files from the server at 00000hrs every day?

Thanks in advance :slight_smile:

just write a small script to delete the files and after that, configure cron to start the script on the time you want it to...

Thanks DukeNuke2 for your reply :slight_smile:

I got it, and just tested the script, and it works!!!

---------- Post updated at 06:16 PM ---------- Previous update was at 05:22 PM ----------

Hi folks,

In what circumstance does the log move to
/var/adm/messages.0.......messages.1,messages.2,messages.3 .......etc?