Skip to content

Instantly share code, notes, and snippets.

@jarun jarun/lastlog
Created Oct 9, 2015

Embed
What would you like to do?
log the output of a command (as well as show in terminal)
#!/bin/bash
"$@" 2>&1 | tee /tmp/lastlog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.