What does the file permission look like? Does only your account have permission to execute or does your account and the group that your account is in have permission to execute? Is the Plex user in the same group as your account? Not running Plex on Ubuntu but that is what I would look for if the script runs fine under my account but won’t run under Plex account.
Thanks Melevittfl but yes that on the first line i i just trimmed the comments from script so that it did not fill up the forum.
The script is fine if i run it manually ./PlexPostProc.sh (Path to media file)
Do I have to put anything in the script box to let it know the incoming file name as a variable?
Ah, sorry. Didn’t read that it ran fine when run manually…
‘/home/kevin/PlexPostProc/PlexPostProc.sh’
Two things I can thinks of… First, you mentioned that the script is owned by user plex, but does the plex user have permission to read and execute the /home/kevin/PlexPostProc directory? You could try moving the script to /usr/local/bin.
Second, maybe the file has some corrupt characters from copy and pasting. try running 'od -c PlexPostProc.sh | less" and see if there are any strange characters in the first lines. It should look like this: