Cron job question
Posted: Sun Apr 18, 2010 11:27 am
My hosting control panel has a Cron job utility that lets me create them using a thing where I specify and time interval and a command line.
Problem is I'm not a Unix guy at all and I know squat about what the "command" should be, so...
There is a thing on my site where a temp file is created in a subdirectory, a special one created for that purpose. When the user exits he is supposed to do so by clicking on an "exit" button which deletes the temp file and redirects but, of course, many just use their browser "back" button. No way am I going to disable the "back" button, so that directory keeps getting cluttered up with temp files and I have to go in and delete them. So I'm thinking in terms of a cron job to delete than once a month or so. But I don't know what unix is for "delete all files." The effect is:
Problem is I'm not a Unix guy at all and I know squat about what the "command" should be, so...
There is a thing on my site where a temp file is created in a subdirectory, a special one created for that purpose. When the user exits he is supposed to do so by clicking on an "exit" button which deletes the temp file and redirects but, of course, many just use their browser "back" button. No way am I going to disable the "back" button, so that directory keeps getting cluttered up with temp files and I have to go in and delete them. So I'm thinking in terms of a cron job to delete than once a month or so. But I don't know what unix is for "delete all files." The effect is:
Code: Select all
delete "/clients/charter/*.*"