Created
May 7, 2013 13:19
-
-
Save ovntatar/5532496 to your computer and use it in GitHub Desktop.
Bash template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# | |
# SCRIPT: $0 | |
# AUTHOR: ovntatar | |
# DATE: $date | |
# | |
# PURPOSE: The script bash template | |
# | |
# | |
# REV LIST: | |
# | |
# | |
#set -x # Debugging | |
#set -n # Check script systanx | |
# | |
################################################# | |
# | |
# FOR DEBUGGING PLEASE CHANGE 0 to 1 | |
# | |
################################################# | |
LOG_FILE='' | |
PSID=$$ | |
[ ! $DEBUG ] && DEBUG=1 | |
LOG() { | |
[ "$DEBUG" == 1 ] && echo "$1" >>$LOG_FILE | |
} | |
echo $(date) --- Start $0 >> $LOG_FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment