Results 1 to 4 of 4
I can admit it. I'm a Linux newbie.
Here is my problem..
I have a small web site where people can upload images.
Unfortunately, the program I use doesn't ever ...
- 09-23-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
[SOLVED] removing files
I can admit it. I'm a Linux newbie.
Here is my problem..
I have a small web site where people can upload images.
Unfortunately, the program I use doesn't ever get rid of images so every few months I have to go in and delete the old ones that haven't been accessed in a while.
I had a script that worked, but this last week my server crashed. My host gave me a new hard drive. And maybe a new version of linux so my command doesn't work anymore.
This is what I had before:
find . -type f -atime +190 -print | xargs rm
Doesn't work now.
Help with this would be greatly appreciated.
Thank you.
- 09-23-2009 #2Linux Newbie
- Join Date
- Nov 2007
- Location
- Planet Earth
- Posts
- 152
Do you receive any error message?
EOF
- 09-23-2009 #3Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
rm: too few arguments
- 09-23-2009 #4Just Joined!
- Join Date
- Sep 2009
- Posts
- 3
OH!! Darn.
I just realized why it isn't working.
Because the hard drive is new, and everything had to be moved over, none of the images are older than this past week.
OK! Nevermind!
Thanks for helping me think through this.


