View Single Post
Old 03-28-2015, 09:15 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
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.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote