Page 1 of 1

Linux start script

Posted: Fri Apr 06, 2018 2:16 pm
by mitch_j
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.

Re: Linux start script

Posted: Fri Apr 06, 2018 2:53 pm
by Tim
This would be nice to add. Thanks.