Linux start script
Posted: Fri Apr 06, 2018 2:16 pm
Change it from:
#!/bin/bash
clear
echo "************ Starting Bible Analyzer *************"
/opt/bibleanalyzer/ba-run.py
echo
read -p "Press Enter to close terminal"
to this:
#!/bin/bash
clear
echo "************ Starting Bible Analyzer *************"
/opt/bibleanalyzer/ba-run.py 2>/tmp/$0.err
This would always log errors to a file in /tmp, allowing some data for trouble shooting. It would also be overwritten with each run.
#!/bin/bash
clear
echo "************ Starting Bible Analyzer *************"
/opt/bibleanalyzer/ba-run.py
echo
read -p "Press Enter to close terminal"
to this:
#!/bin/bash
clear
echo "************ Starting Bible Analyzer *************"
/opt/bibleanalyzer/ba-run.py 2>/tmp/$0.err
This would always log errors to a file in /tmp, allowing some data for trouble shooting. It would also be overwritten with each run.