Project

General

Profile

Problems with post-recording script.

Added by Ola Nordmann about 10 years ago

Hi guys, having some trouble executing an post-recording script. I'm currently running HTS Tvheadend 3.9.1353~g99ed831~wheezy and have added the following line to post-processing in Configuration -> Recording - Post-processing command "

java -cp /usr/local/bin/upload.jar Main %f

The jar is chmoded to 777 (dont know if it matters tho), and tvh is running as root so there should not be any auth issues. The jar execute just fine if I try it with static variables from shell e.g :

java -cp /usr/local/bin/upload.jar Main /path/to/file.mkv

Any hint, tips or tricks on how I could debug this? It's like it's not running, I tried adding a static file to instead of %f in tvheadend aswell, so It looks like it not executing at all.


Replies (1)

RE: Problems with post-recording script. - Added by Ola Nordmann about 10 years ago

SOLVED : I got a hint from #hts that I should use absolute paths, and did so with java, like this.

/usr/bin/java -cp /usr/local/bin/upload.jar Main %f %c %t
    (1-1/1)