-
|
Hi guys I have a bash script that is executed by agentdvr. Trouble is I dont know how to get the script to execute the magick commands "compare" or "convert" it always says command not found. I suspect this is because the volume mapping of the docker container to the script installed on my actual linux server. The container doesn't have context over where /usr/bin/compare is for example? How can I fix this? The script runs perfectly when executed through the terminal of course. It just doesn't work when agentdvr executes it. Here is my script: SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) >> sendTelegram3LogFile echo "File Path: $1" CompareRes=$(compare -metric ae -fuzz "$FuzzPerc" "$GrabDir$FileName" "$GrabDir$SecondLastFile" null: 2>&1) echo "The grab directory : $GrabDir" >> sendTelegram3LogFile if [ $(echo "$res > $Confidence" | bc) -eq 1 ]; then This is the logfile out
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I actually figured out the answer to this just as I posted it. Sorry about that. I just had to add an install script to my docker compose file to install the needed packages inside the container itself. |
Beta Was this translation helpful? Give feedback.
I actually figured out the answer to this just as I posted it. Sorry about that. I just had to add an install script to my docker compose file to install the needed packages inside the container itself.