View Single Post
Posts: 882 | Thanked: 1,310 times | Joined on Mar 2007
#8
Originally Posted by ersanpermana View Post
Can't you give me example is more understandable?
Let's say you have a script that does something to the image. It resides in /usr/bin and is called transferimg.sh. You can then add a target and set command to:
Code:
/usr/bin/transferimg.sh "$FILENAME"
and your script would be called with full path to selected image as a parameter like

Code:
/usr/bin/transferimg.sh "/home/user/MyDocs/DCIM/20120925_1.jpg"
Or you could use it to scp the chosen images to a computer that has ssh with something like:

Code:
scp "$FILENAME" ersanpermana@computer.local:/path/to/your/chosen/dir
You need to setup ssh keys though so you don't have to enter password etc.
 

The Following User Says Thank You to ukki For This Useful Post: