Post-Processor Command Script...
Added by Bernd Kehr almost 10 years ago
Hello everyone,
I have compiled TVH 3.9.2333~g1027f29 for my Raspberry after I used TVH 3.6 for a long time.
I tried the Post-Processor Commands for the first time, but my script is not working.
It seems, that TVH execute the script, but the script is non running.
2015-01-07 14:10:06.255 spawn: Executing "/home/pi/qnap/tv/test.sh EuroNews-3.ts"
Here is my script test.sh with chmod 777 rights:
#!/bin/bash
echo "tvh post-command test script" >>"$1.log"
echo "tvh post-command test script"
/bin/date >>"$1.log"
/bin/date
echo "-----------------------------------" >>"$1.log"
echo "-----------------------------------"
Thanks for your help/ideas.
Bernd.
Replies (3)
RE: Post-Processor Command Script... - Added by Bernd Kehr almost 10 years ago
Hello again,
now it seems, that the script is executing, but have no permissions to write to the log file.
/home/pi/qnap/tv/demuxtodvd.sh: line 12: ZDF-History.log: Permission denied
I really don't know what is wrong. TVHeadend can write the recordings to the directory.
But if TVHeadend start the script as user "tvheadend" there is no permission to do that....
Can anybody help?
Thank you so much.
B.
RE: Post-Processor Command Script... - Added by Prof Yaffle almost 10 years ago
What working directory is being used when the shell is spawned for this script?
I'd guess that you're trying to write to ./$1.log instead of $WHEREVER-THE-RECORDING-IS/$1.log
You might need to specify the full path (e.g. to /home/pi/qnap/tv/logfiles/$1.log) or extract the path (if you're using subdirectories) from %f or another variable.
RE: Post-Processor Command Script... - Added by Bernd Kehr almost 10 years ago
Hey Prof Yaffle,
you are right. I just write down the script "quick and dirty" and forget this point.
Here you can find my first working version: https://github.com/breadstuff/demux.sh
B.