View Full Version : Program for deleting files
Genbash
12-15-2004, 08:44 PM
I have been told by my web hosting company that cron jobs cant delete files. Was wondering if there is any script or something i could have that could be programed to delete contents of a file at certain times of the day
MajorWoody
12-16-2004, 03:12 PM
Just use your cron job to copy an empty copy of a file over the file you want to replace. I assume you're talking about logs here and not some pk3 or something.
Genbash
12-16-2004, 08:33 PM
yes i am , so i can use cron jobs to just replace the whole file with an empty one.Dueing that would basically erase the old one and replace it with an empty.Is this right??
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.