Comments on: Using Shell Scripting to Automate Linux System Maintenance Tasks – Part 4 https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 21 Feb 2020 12:45:25 +0000 hourly 1 By: ankit https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1317966 Fri, 21 Feb 2020 12:45:25 +0000 http://www.tecmint.com/?p=15237#comment-1317966 In reply to Việt Adm.

I am also using centos and facing the same error and I have tried this:

df -h | while read line; do
echo “” >> $WEB_DIR/report.html
done 

Also but got an error…

]]>
By: Sunil Darna https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1233858 Thu, 29 Aug 2019 08:28:55 +0000 http://www.tecmint.com/?p=15237#comment-1233858 I’m trying to execute below script to get Memory information for clients. But It throwing error with ” bash: Total: command not found.

bash: line 1: Used: command not found
bash: line 2: Free: command not found

I understood that shell is confused to execute “invited quotes”. But I used " ` " symbol also same output. Please help me to execute with desired output.

#!/bin/sh

echo "MEMORY"

cmds="free -t -m | grep 'Mem' | awk '{ print "Total : "$2 " MB";print "Used : "$3" MB";print "Free : "$4" MB";}' "

for ip in `cat /home/server.txt`
do
ssh -i "/home/ec2-user/Office_Laptop_key.pem" ec2-user@${ip} "$cmds"|tr '\n' ','|sed 's/,,/,NULL,/g'
done

]]>
By: Sajal https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1157693 Sat, 25 May 2019 17:13:01 +0000 http://www.tecmint.com/?p=15237#comment-1157693 How can run this report to remote servers to gather the data and display for individual servers in one report.

]]>
By: Ravi Saive https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1031526 Mon, 03 Sep 2018 04:46:41 +0000 http://www.tecmint.com/?p=15237#comment-1031526 In reply to Bile.

@Bile,

Just do a little search on Tecmint.com, you will get all articles about LAMP, LEMP and network related stuff..

]]>
By: Bile https://www.tecmint.com/using-shell-script-to-automate-linux-system-maintenance-tasks/comment-page-1/#comment-1031215 Sun, 02 Sep 2018 10:14:12 +0000 http://www.tecmint.com/?p=15237#comment-1031215 With the help of this script I can show system information, thanks.

Please post more related things like install lamp, network profiles and lots of more….

]]>