2019-10-07, 08:11 PM
(2019-10-06, 02:31 PM)tjzi422xlk Wrote: I did some more testing and it looks like this might be the answer and still preserve the single quote:I've had another go at this for the next release, replacing 'single quote' characters with 'single quote, backslash, single quote, single quote'. I don't have a convenient show to test it on, but testing it in shell window looks like it'll do the job.
bash -c "'/var/opt/nextpvr/scripts/PostProcessing.sh' '/mnt/NextPVR/Recordings/Mister Rogers Neighborhood/Season 15/Mister Rogers Neighborhood.S15E12.ts' 671 2529 21 'Mister Rogers'\'' Neighborhood'" - note, it is single quote,backslash,single quote,single quote after Rogers - it's hard to see.
In my PostProcessing script I echo'd the $1 $2 $3 $4 $5 variables and this is the output:
/mnt/NextPVR/Recordings/Mister Rogers Neighborhood/Season 15/Mister Rogers Neighborhood.S15E12.ts 671 2529 21 Mister Rogers' Neighborhood