rharder / imagesnap

Capture Images from the Command Line
https://github.com/rharder/imagesnap
458 stars 50 forks source link

imagesnap: command not found #15

Closed pranav18 closed 3 years ago

pranav18 commented 7 years ago

When I am trying to use imagesnap via shell script its not working. Here is the code :

camera_filename="IMG_${timestamp}.jpg"
echo "Take picture $camera_filename"

imagesnap "$camera_filename"

Error that I am getting is : imagesnap: command not found

But via terminal same command is working. using in shell script its not working.

path of "imagesnap" is : /usr/local/bin

I don't know where I am wrong.

ryandesign commented 4 years ago

Either refer to imagesnap by its absolute path /usr/local/bin/imagesnap or else make sure /usr/local/bin is in the PATH environment variable.