#!/bin/bash # Script for starting BOINC in background and keeping logfile. # Required argument: Path to BOINC binary # Optional argument: Logfile path if [ $# -lt 1 ]; then echo "Usage: $0 pathname_to_boinc" exit 1 else BOINCBIN=$1 if [ $# -lt 2 ]; then LOGFILE="/dev/null" else LOGFILE=$2 fi fi ${BOINCBIN} >> ${LOGFILE} 2>&1 &