View Single Post
Old 03-27-2015, 01:20 PM  
druid66
Confirmed User
 
Join Date: Feb 2006
Posts: 994
so i should make a .sh file with this content:

[CD to the $PWD(working directory to start recursion)]

$ find . -name "*.jpg" -or -name "*.gif" -or -name "*.png" | wc -l >ct
$ cat ct
110
^image count

and setup cron to run it one or more times daily and it will count all images?
but how to show this file where are those images located (normally it's wp-content/uploads and there are subfolders) ?

also how would look command to echo of results?

thanks a lot for helping, your way is indeed much better than any plugin or php which is running all the time.
__________________
Pure Japan japanese babes blog
druid66 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote