Skip to content

Instantly share code, notes, and snippets.

@parente
Created May 28, 2010 15:38
Show Gist options
  • Save parente/417300 to your computer and use it in GitHub Desktop.
Save parente/417300 to your computer and use it in GitHub Desktop.
run in background, output to log
#!/bin/bash
LOG=~/Applications/bin/b.log
echo "<<($@)" >> $LOG
$($@ >> $LOG 2>> $LOG; echo ">>($@)" >> $LOG) &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment