How to manage more then 2000 images on a ftp server?

Discussion in 'Site & Server Administration' started by crazyhorse, Jul 6, 2005.

  1. #1
    Any ideas? My ftp doesnt allow me to view more then 2000 files at the same time. Will SSH work, if so how to view and erase lets say a hundered images at one time. Is there any guide where i could read more about this? If this isnt possible what would be something else to do? :rolleyes:
     
    crazyhorse, Jul 6, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    Do you have shell access to the server? That's the easiest way... just rm /yourimagefolder/*...
     
    digitalpoint, Jul 7, 2005 IP
  3. Perrow

    Perrow Well-Known Member

    Messages:
    1,306
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    140
    #3
    I would use subfolders, is there any special reason you can't?
     
    Perrow, Jul 7, 2005 IP
  4. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Yes i do. Im using putty to connect. May i ask what the term "rm" means. Would u know away to erase multiple images all in once by any change. ;)
     
    crazyhorse, Jul 7, 2005 IP
  5. Perrow

    Perrow Well-Known Member

    Messages:
    1,306
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    140
    #5
    rm means remove, it can if I'm not mistaken remove both files and folders. You can use it with wildcards to remove files with similar names

    rm pict*

    removes all files whos name starts with "pict".
     
    Perrow, Jul 7, 2005 IP
  6. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Great would it be possible to erase pictures using the option wildcards that contain the word "xtreme", as for example in the middle of this url NEXTEL_I80_XTREME_Rapid_Charging_Car_Charger_Silver1.jpg . And would it be possible to erase images that have a certain height and width? Thanks
     
    crazyhorse, Jul 7, 2005 IP
  7. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #7
    You can play around with wildcards yourself using the ls command.

    I believe
    ls *XTREME*.jpg
    PHP:
    will do the trick for you.

    For height and width, I don't know, but if you have some perl knowledge you could do it. Maybe somebody knows of a script or could write one really quick. I don't know image libraries very well.
     
    nevetS, Jul 7, 2005 IP
  8. crazyhorse

    crazyhorse Peon

    Messages:
    1,137
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #8

    Thanks You can use the remove command as well:

    Still havnt figured out how to delete the images depending on there size. :confused:
     
    crazyhorse, Jul 7, 2005 IP
  9. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #9
    That would be a big tricky... you would need to write a script that read the names of all the files, open them all and check the dimensions (and your script would need imaging functionality), then remove ones based on some logic.
     
    digitalpoint, Jul 7, 2005 IP