Permalink
Browse files

testing

  • Loading branch information...
espressoknight committed Jan 25, 2013
1 parent c627d69 commit 5eef79bbe6ba5f593b36a36eb2c4f2362f16abde
Showing with 16 additions and 8 deletions.
  1. BIN .gerbal.sh.swp
  2. +7 −8 gerbal.sh
  3. +9 −0 test.sh
View
Binary file not shown.
View
@@ -97,24 +97,23 @@ continueornot
sleep 3
g4 "Checking server uptime..."
uptime
- sleep 1
-continueornot
+ sleep 2
+
#check free memory
g4 "Checking free memory..."
free -t -m
-continueornot
#checking for memory in consumption
g4 "Checking Memory Usage"
egrep -h --color 'Mem|Cache|Swap' /proc/meminfo
g3 "all done with memory checks!"
-continueornot
+sleep 3
#checking diskspace
g4 "Checking server disk space"
df -h
-continueornot
+sleep 1
#checking amount of disk used per user account
g4 "Checking disk usage for /home directories"
@@ -141,9 +140,9 @@ sleep 1
do
(echo >/dev/tcp/localhost/$p) >/dev/null 2>&1 && echo "$p open"
done
-
-#checking open ports being used on server
-g4 "checking what ports are being used currently on server!"
+sleep 2
+#checking to see what is using the open ports
+g4 "checking to see that is using the open ports!"
netstat -tulpn
sleep 3
continueornot
View
@@ -0,0 +1,9 @@
+#!/bin/bash
+#testing some new ideas
+
+echo testing a show directory script
+
+for entry in $(ls)
+ do
+ du -sh "$entry"
+ done | sort -n

0 comments on commit 5eef79b

Please sign in to comment.