Skip to content

Instantly share code, notes, and snippets.

View pschumm's full-sized avatar
Always around...

Phil Schumm pschumm

Always around...
View GitHub Profile

Keybase proof

I hereby claim:

  • I am pschumm on github.
  • I am pschumm (https://keybase.io/pschumm) on keybase.
  • I have a public key whose fingerprint is BD6C 6A61 8D02 E2B9 E558 EC93 640A 553F A786 A16C

To claim this, I am signing this object:

@pschumm
pschumm / statab
Created October 7, 2014 00:06
Wrapper for "stata -b" which issues an informative error msg and appropriate (i.e., non-zero) return code
#! /bin/bash
# Wrapper for "stata -b" which issues an informative error msg and appropriate
# (i.e., non-zero) return code
# The basic idea for this script (including grepping the log file to determine
# whether there was an error) was taken from a similar script posted by Brendan
# Halpin on his blog at http://teaching.sociology.ul.ie/bhalpin/wordpress/?p=122
args=$# # number of args