PlexConnect synology autostart - Help Please

Hi All

 

I'm new to python, I know a bit about unix.  Not to clued on scripting.  Anyway, I got the plexconnect.py working manually, ie by just running it ./plexconnect.py, I have tried to create a autostart by creating a file

 

/usr/syno/etc/rc.d/S99plexconnect.sh

 

#! /bin/sh

LOGFILE="/volume1/PlexConnect/plex.log"
PLEXCONNECT="/volume1/PlexConnect/PlexConnect.py"

case "$1" in
start)
echo "Starting PlexConnect..."
nohup python $PLEXCONNECT 2>&1 > $LOGFILE &
;;
stop)
echo "Stopping PlexConnect..."
killall python
;;
*)
echo "Usage: plexconnect {start|stop}"
exit 1
;;
esac
exit 0

 

Now, once I created the file i ran it ./S99plexconnect.sh, I get the following error in the log file?

 

WebServer : Shutting down.
PlexConnect : Shutting down.
Traceback (most recent call last):
File "/volume1/PlexConnect/PlexConnect.py", line 83, in
key = raw_input()
EOFError: EOF when reading a line
 

Any idea, by running /volume1/PlexConnect/PlexConnect.py manually it works fine, puzzled, Thanks

 

you have to comment out the last lines from PlexConnect.py beginning "try: key=raw_input()" until the end of the file.

this works for me.