I wrote a script to clean log files in a certain directory that are more than 3 days old but get the error "The parameter list is too long". Here is the command:
find *.log -mtime +3 -exec rm {} \;
Any idea how to clean these files automatically? Why am I getting this error? Thanks in advance for an help.
find *.log -mtime +3 -exec rm {} \;
Any idea how to clean these files automatically? Why am I getting this error? Thanks in advance for an help.