I made a script where I wrote:
COMMAND="/usr/bin/exiftool $PATH_NAME" .... code .... $COMMAND
The variable $PATH_NAME is assigned dynamically inside a while loop. The command works fine until it encounters files with spaces (for example PATH_NAME="Add Driver.png"). The console output is:
File not found: ./Add File not found: driver.png
The command should be:
/usr/bin/exiftool ./Add driver.png
I think the problem is given by the spaces in the $PATH_NAME. I tried also to execute directly the command:
eval "/usr/bin/exiftool $PATH_NAME"
But same output error. Any idea to solve the problem? thanks.