Skip to content

Instantly share code, notes, and snippets.

View Mstrodl's full-sized avatar
🖖
chom

Mary Mstrodl

🖖
chom
View GitHub Profile
@Mstrodl
Mstrodl / install-background.sh
Last active March 24, 2017 04:29 — forked from slice/install-background.sh
Run this script in the background. A log file will be created at /b1n.log. Because we need to do this line by line, echo and log instructions should be left out since those are only for debugging. Define the functions too, but make it on one line like this: NAME() { BLAH }. Remember to leave out all log instructions and leave out >$LOG 2>&1.
echo "script will launch in background"
echo "cat /b1n.log to see progress"
LOG="/b1n.log"
# the log file we will be using
echo "*** $(date) script begin ***" > $LOG
log() {
echo "$*" >> $LOG