Can anyone help me with line 17 and 21? Also how would I get the photograph names to be unique? At the moment you have to run ./booth to get the file to run, is there a way to loop the program so you just have to hit enter?
- #!/bin/bash
- # booth - version 0.1
- # Requires: gphoto2, ncftp
- # Author: Christian James-Watkins <in...@cjphotography.tk>
- # http://www.cjphotography.tk/docs/.booth
- # License: GPLv3 CJ Photography
- # change to directory
- cd Desktop
- cd booth
- # take photograph
- gphoto2 --capture-image-and-download
- # watermark image # small one in corner preferred
- for pic in *.jpg; do
- composite -dissolve 30% -gravity south ${pic//.jpg}-marked.jpg $pic LogoW.png
- done
- # upload file
- ncftpput -u user -p password ftp.server.tk /public_html/booth /Desktop/booth/*.jpg
- # remove file
- rm -r *.jpg
Here is the output I am getting at the moment
- New file is in location /capt0000.jpg on the camera
- Saving file as capt0000.jpg
- Deleting file /capt0000.jpg on the camera
- Deleting 'capt0000.jpg' from folder '/'...
- ./booth: line 17: composite: command not found
- Cannot open local file /Desktop/booth/*.jpg for reading: No such file or directory.
- ncftpput /Desktop/booth/*.jpg: could not open file.
As you can see /Desktop/booth/ exists as that is the directory the image is being saved to, I have tried troubleshooting by removing line 20 and the images do save there. Sorry for all the questions but any help you can provide would be so helpful!