Skip to content

Commit

Permalink
check_uptime: origin by Paul Basehore
Browse files Browse the repository at this point in the history
  • Loading branch information
aswen committed Jan 26, 2012
1 parent c1a2904 commit f5c955d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions check_uptime
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Version 1.02
# By Paul Basehore


struptime=`uptime | awk '{print $2,$3,$4,$5}'`
struptime1=${struptime%,}
strdayshours=${struptime1%%:*}' Hours, '
strminutes=${struptime1##*:}' Minutes'

echo "System Uptime -" $strdayshours$strminutes

0 comments on commit f5c955d

Please sign in to comment.