From 7370a790380866040a57d06ac3d26a04b125fa06 Mon Sep 17 00:00:00 2001 From: JJ Asghar Date: Fri, 6 Jul 2012 16:39:50 -0500 Subject: [PATCH] dumb jj, append not overwrite --- linux_audit.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/linux_audit.sh b/linux_audit.sh index 60ce705..663eabf 100755 --- a/linux_audit.sh +++ b/linux_audit.sh @@ -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/