Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
dumb jj, append not overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ Asghar committed Jul 6, 2012
1 parent 482901e commit 7370a79
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions linux_audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
DATE=`date +%F`
HOSTNAME=`hostname -s`

uname -a > out1.txt
echo "" > out2.txt
uptime > out3.txt
echo "" > out4.txt
rpm -qa | sort -u > out5.txt
echo "" > out6.txt
df -h > out7.txt
cat out* | tee $HOSTNAME.$DATE.txt
rm out*.txt
uname -a >> $HOSTNAME.$DATE.txt
echo "" >> $HOSTNAME.$DATE.txt
uptime >> $HOSTNAME.$DATE.txt
echo "" >> $HOSTNAME.$DATE.txt
rpm -qa | sort -u >> $HOSTNAME.$DATE.txt
echo "" >> $HOSTNAME.$DATE.txt
df -h >> $HOSTNAME.$DATE.txt
cp $HOSTNAME.$DATE.txt /tmp/

0 comments on commit 7370a79

Please sign in to comment.