I’m trying to create a script that’ll save something to a file. I’m banging my head against the wall here, I tried this in a million different variations and I can’t understand why this is not working.
The docs say that if you use templates in your command, then the command runs with more restrictions. Importantly for what you’re trying to do: pipes are not allowed.
To get around this for your example, create a shell script and save it somewhere like /config/shellscripts/savepdf.sh. The contents would be something like: