do you actually have an asterisk on the end of the actual file name “*” after doing ls, or, is that some formatting/indicator I don’t remember?
Though you’ve (apparently) set permissions for that single file so that anyone can rwx it, does Plex/the user Plex runs as have access to /usr/local/bin (I’d think and hope not) - try placing the script in a sub folder you create under the Plex Media server’s volatile directory, perhaps, the same location one would install plug-ins, but, …/scripts - with the same perms/owners as the Plex folders.
The asterisk isnt actually on the file name, its just dvrPostProcess.sh. I moved the script to the root of my TVShows directory and it still does the same thing:
-rwxrwxrwx 1 nobody users 47 Jan 23 17:18 dvrPostProcess.sh*
root@Tower:/mnt/user/TVShows#
Im 99% sure the problem is PEBKAC. I completely forgot I was running Plex in a docker container thus its pathing is going to be different than the underlying OS. I will verify that tonight. Sorry.
Good to hear.
Aren’t you glad I wanted you to post what OS you were running on?
So, while you’re here but before you leave, what does the script do?
And, any links to where you got the script/apps it runs, in case anyone else wants to do the same thing?
I am running Unraid 6.4.0. That question was enough to remind me about the docker.
The script just moves recorded tv shows into a folder that is outside of my TVShows share. Im basically trying to replicate what I do on my windows 7 computer using Plex in that I record on Windows 7, then have Videoredo-Autoprocessor detect a new recording and scan it for commercials then use VideoRedo to verify the commercial points and save off the commercial-less recording into the TVShows share.
Here is the entirety of the script:
#!/bin/bash
mv "$1" /media/public/RecordedTv/
One bizarre thing I ran into which I unfortunately didnt notice until the next day was that two shows were scheduled to be recorded but werent moved into RecordedTV yet directories were made for them on my TVShows share but nothing is in them. Since I didnt notice until the following day the Plex log had nothing.