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.
|