Did you make the bash .sh script in a widows editor? In Windows it need to be done in notepad and saved as 'all files' .sh -- DOS and UNIX line endings?
If you could SSH to the directory and run the command manually you could test for output ...
$ cd ./path/to/file
$ find . -name "*.jpg" -or -name "*.gif" -or -name "*.png" | wc -l >ct.txt
also
$ stat imgct.sh
make sure the permissions are 755 if the command works manually.
ct.txt and display.php should stat with 644 permissions.
|