sintonia/python_apps/media-monitor/airtime-media-monitor
martin 50ff1984f2 -python interpreter exceptions are now redirected to a file so
we can see messages related to indentation errors etc. File should
 be useful for devel purposes only.
-a merge with the 1.8.2 branch incorrectly changed the version string. Fixed.
2011-06-08 12:33:38 -04:00

17 lines
473 B
Bash
Executable file

#!/bin/sh
# Location of pypo_cli.py Python script
media_monitor_path="/usr/lib/airtime/media-monitor/"
media_monitor_script="MediaMonitor.py"
api_client_path="/usr/lib/airtime/pypo/"
cd ${media_monitor_path}
exec 2>&1
export PYTHONPATH=${api_client_path}
# Note the -u when calling python! we need it to get unbuffered binary stdout and stderr
exec python -u ${media_monitor_path}${media_monitor_script} > /var/log/airtime/media-monitor/py-interpreter.log 2>&1
# EOF