Hoping someone can help me out here as I’m pulling my hair out!
I’m trying to send the Spotify picture_entity URL over to a script so I can convert it from JPG to PNG using magick. If i run the script manually through terminal everything works as it should, but when it’s triggered via an automation, I get the 127 error code.
I’ve tried with/without quotes (both single and double), I’ve tried passing over the raw text not as a variable as well, but nothing is getting picked up by the script.
Thanks @Rudd-O have made that update, but still no joy, getting closer though!
Looks like there is some weird location or permission issue though, running the command from the ‘Execute Shell Command’ option in file editor I was getting messages about magick not existing, so updated the script to check for it and install if not there (think this may be down to a reboot or update, so thought it best to add it in permanently to be on the safe side)
Everything seems to be working ok from an image generation perspective, but the script now can’t output the file it creates:
As you can see from the log I moved the script to the same location as where it needs to drop the file (/config/www/, will move this out for security once done) but I’m getting the message that it can’t find the folder it’s executing from
Yes, that folder does not exist in your system. /config is not a directory within the root file system to my knowledge. How about you try running this:
bash -c 'pwd ; ls -la'
in the command, to orient yourself as to which folder the script convert_artwork.sh is located? Perhaps all it is necessary is to use a relative path…