I got a problem with my server.... whmreseller is creating problem on my server, as its creating lods of core dumps because of dome getip functions. I need a shell script to be made which removes that core.* files from my server from the current directory and sends me the mail that core files are found with the file names.. I tried it but it dosent works.. Can any one help me in this ? i need to run that script through a cron job every 20 minutes...
For this type of job I normally create a perl daemon and then execute it through cron. If you have Perl compiler installed it won't be hard to do.
In case you are creating a daemon, then you dont have to put it into cron, if you are creating a mere script, you gotta put that into cron. use unlink function to delete the files in perl script.