Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Linux Newbie
    Join Date
    Nov 2007
    Location
    Planet Earth
    Posts
    152
    Do you receive any error message?
    EOF

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    3
    rm: too few arguments

  4. #4
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...