Not Sure How to Look for Not Used Images On the Server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Not Sure How to Look for Not Used Images On the Server
# 1  
Old 05-05-2011
Not Sure How to Look for Not Used Images On the Server

Hello All:

I a website with over 1800 pages in all HTML and I am trying to figure out, what is the best way for me to see when the image files were last accessed.

Reason being, I am sure I have images in there that were not deleted when a page was taken offline or whatever and I would like to clean up some space.

I have been messing around with some Unix Commands but I cannot seem to get either stat() or atime to work for me when logged into the root. Smilie

Is there something I am missing here that someone can help with?

Thanks

Paul
# 2  
Old 05-05-2011
What is your system? What is your shell?

Also: Just the last access times may not tell you if these images are "needed" if they are referenced in a webpage.

Also, your system, depending on what it is, may not bother updating atimes.
# 3  
Old 05-05-2011
If these images are being accessed from your web pages, say from Perl or PHP, or other Webserver backend, perhaps adding a call to the system logs as they're being served up might be worth trying. Then after time you would have some kind of information about the images in perspective of when they're served. Consider a simple SQLite DB as well.
# 4  
Old 05-05-2011
Thanks guys for the help. I was thinking that if a file was accessed say 2006 or so, then I would know it is not being called in a page. I guess that is not right then.

Thanks again
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to download Images and Json file from server(godaddy) to Local machine (Ubuntu 14.04).?

Hi Guys, Just entering the Linux word, So I need help to write a script on my local machine(Ubuntu 14.04) that continuously check the particular folder(contains images) and a json file on the server and download whenever new images are added to that folder and whenever there is a change in the... (10 Replies)
Discussion started by: g4v1n
10 Replies

2. Shell Programming and Scripting

Bash Script to find/sort/move images/duplicate images from USB drive

Ultimately, I'm looking to create a script that allows me to plug in a usb drive with lots of jpegs on it & copy them over to a folder on my hard drive. So in the process of copying I am looking to hash check them, record dupes to a file, copy only 1 of the identical files (if it doesn't exsist... (1 Reply)
Discussion started by: JonaQuinn
1 Replies

3. Shell Programming and Scripting

Want to resize images for a specific size on server - Please help

,,,,,, (4 Replies)
Discussion started by: Praveen Pandit
4 Replies

4. Solaris

Solaris 8 02/04 CD images

Hi all friends of the Forum, i want to ask you if someone would be so kind to provide me the links for Solaris 8 02/04 CD images.. (I can't find them in the Net, maybe my google-fu is weak) (Also i don't have an Oracle Solaris support contract so i can't download them from their site) ... (0 Replies)
Discussion started by: mk2soldier
0 Replies

5. Shell Programming and Scripting

combining two images into one

Hi, I have two sets of image files. Both sets have names A to Z but set 1 ends with .cdt.png and set 2 ends with .matrix.png. I want set 1 to match with set 2 if the names match (i.e. A.cdt.png will match with A.matrix.png) and with the convert image tool (program for images), it will merge the... (1 Reply)
Discussion started by: kylle345
1 Replies

6. UNIX for Advanced & Expert Users

How do I configure kickstart server to install different images

How do I configure kickstart server to install workstation using centos image and other workstation using redhat enterprise image. I configured my kickstart server to auto install centos 5.3 and it working fine. However I would like to configure kickstart server, so that workstation with... (1 Reply)
Discussion started by: hassan1
1 Replies

7. Web Development

images are not visible

hi, why my uploaded images are not visible both in front-end and back-end of my CMS ? See the picture: http://dl-client.getdropbox.com/u/72686/noPics.png I checked the GD library in php. It seems ok... http://dl.getdropbox.com/u/72686/GD.png thanks ---------- Post updated at... (0 Replies)
Discussion started by: aneuryzma
0 Replies

8. Shell Programming and Scripting

delete oldest images from remote server

Would someone please give me a script that will remove all but the newest jpg image from my server. i am uploading a new image every 10 seconds form a live web cam Also i do not know who to make a shell script work i am new to all this so i need all the help you could give Thank You very much (1 Reply)
Discussion started by: Destined
1 Replies

9. Solaris

Flar Images

I once found a document on the web describing how to build partition flar images instead of having just the one large one. I have managed this but am having problems extracting the subsequent flar archives. I ahve built the system from a jumpstart server and now need to add the program images etc... (0 Replies)
Discussion started by: 58fairlane
0 Replies

10. AIX

where to get .bm or .pm images

I'm just trying to get a personal picture for a backdrop on my AIX user account at work. Where does one acquire the .bm or .pm files. How do I create them as an unpriveledged user? There are quite a few jpeg's that I would like to use. (0 Replies)
Discussion started by: trigggl
0 Replies
Login or Register to Ask a Question