Skip to content

Instantly share code, notes, and snippets.

@satokjp
Created April 3, 2014 07:40
Show Gist options
  • Save satokjp/9949936 to your computer and use it in GitHub Desktop.
Save satokjp/9949936 to your computer and use it in GitHub Desktop.
set time
#!/usr/bin/bash
#
if [ $# -ne 1 ]; then
echo
echo "command line error!"
echo "Usage: $0 [IP_Address]"
exit 1
fi
DATE=`date +"%m/%d %k:%M:%S %Y"`
#echo $DATE
set_time.tcl $1 "$DATE"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment