Learn Unix Shell Scripting Training from the Best Tutors
Search in
Lesson Posted on 03/03/2021 Learn Unix Shell Scripting Training
Unix (Automation for Disk space Alert on Server using Shell Script)
Umesh Prasad
I am having 10+ years of vast experience in Python, Unix ,Linux ,Shell Scripting and Perl Scripting.I...
disk_check_advance.sh
#!/bin/ksh
var=`df -a|grep home|tail -1|awk '{print $3}'`
HOST=`hostname`
echo $var1
if [ $var -le 3000000 ]; then
df -h|grep home >data
# du -s /home/* 2>/dev/null| sort -rn |head -20>>data
# cat data|
# mail -s "Alert: Almost out of disk space on $HOST" umesh.prasad@fedex.com
while read line; do
ED=`echo $line|cut -d "/" -f3`
ID=`echo $line|cut -d "/" -f3|cut -c1`
if [ "$ID" == "f" ]
then
ID1=`echo $ED|cut -c2-`
`echo $line | mail -s "Alert:Almost out of Disk space on $HOST" $ID1@fedex.com`
else
ID1=`echo $ED|cut -c3-`
`echo $line | mail -s "Alert:Almost out of Disk space on $HOST" $ID1@fedex.com`
fi
done < data
fi
Lesson Posted on 07/11/2019 Learn Unix Shell Scripting Training
Internal and external commands Linux
Ramesh Gundlapalli
Having 11 years of IT experience and key skills are Unix-ShellScripting and database Oracle .
Answered on 17/01/2019 Learn Unix Shell Scripting Training
Jyoti Khera
Learn Unix Shell Scripting Training from the Best Tutors
Answered on 31/12/2018 Learn Unix Shell Scripting Training
Zafrul Umar
Computer Trainer
Answered on 22/12/2018 Learn Unix Shell Scripting Training
Sachin Kulkarni
Unix Trainer
Answered on 19/12/2018 Learn Unix Shell Scripting Training
Ashok Gupta
Expert Oracle Professional having 7 Years of Corporate Experience
Learn Unix Shell Scripting Training from the Best Tutors
Answered on 20/12/2018 Learn Unix Shell Scripting Training
Kumar CH
Tutor
Bash scripting can be abale to do what a c programming language can do.It doesnt have OOPS properties . As we have other languages with wider functionalities like perl and python people are not relaying on Bash scripting .Even when the data is more some times Bash scrpting behaves odd as per my personal experience
read lessAnswered on 17/01/2019 Learn Unix Shell Scripting Training
Jyoti Khera
Answered on 20/01/2019 Learn Unix Shell Scripting Training
HET DESAI
I would like to answer this from Unix perspective.
I would share a couple of experience where I saw the things went messy.
The 1st and formost thumb rule is to avoid use of find and rm in your shell script eventhough you are removing the perticular file set from a specific directory because when you are doing the trouble shooting from developer's work area then it would remove the files recursively and it would take time to realise what went wrong.
Point 2) Always have time to time backup of .ssh directory where you store the public or private keys as this is the most critical directory where you maintain server connectivity which may impact your deliverables.
Now from oracle perspective:
If you work on complex queries, run your queries and check at least thrice on different environments( where you have multiple data stored) that I am not missing any join which is leading to cartesian product.
2) check that you table doesnt contain any NULL record in the column being used in where condition because we dont always use this check ( column is not NULL)
read lessLearn Unix Shell Scripting Training from the Best Tutors
Answered on 18/09/2020 Learn Unix Shell Scripting Training
Santosh
UrbanPro.com helps you to connect with the best Unix Shell Scripting Training classes in India. Post Your Requirement today and get connected.
Ask a Question
The best tutors for Unix Shell Scripting Training Classes are on UrbanPro
The best Tutors for Unix Shell Scripting Training Classes are on UrbanPro