I have come back to this again. I have created a script which just writes some fixed text to a file. I have run it /home/osmc/test.sh and it is writing the text to the file
I have added the above path to my recording profile and I have starting recording a programme and then aborted it so that the post script is then run but I am not getting the resultant file.
I am guessing that there is some permissions issue going on so which user runs TVHeadend and where is the best place to put the script so the write permissions are there to run it. .
I need to be able to write a file to the directory where the recording is so how do I get a new file that permission.
As you can guess I new to code writing in Linux so please be gentle
Thank you very much for any help