trouble deleting old files
Hello all, Iam having trouble on my linux VPS. I currently running a game server, and want to clear out old user accounts in the user directory. All the user (player accounts ) end with *.ini , I was trying to clear them out past 120 days old. here are the commands I was using.
find /home/ogp_agent/6666/samp03/scriptfiles/ZMA/Users* -mtime +120 -delete
find /home/ogp_agent/6666/samp03/scriptfiles/ZMA/Users -mtime +120 -exec rm {} \;
find /home/ogp_agent/6666/samp03/scriptfiles/ZMA/Users/* -mtime +120 -exec rm -f {} \;
I wasnt getting any error messages, it acted like it performed the cmd, but I still have player accounts that are older than 120 days. Iam using CentOS 6.5 x32 , can somewon tell me a better command to use, those commands is all I can find on google search and they dont work for me. thank you!
Mark
|