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 02 May Learn Unix Shell Scripting Training
Deepika Agrawal
"Balancing minds, one ledger at a time." "Counting on expertise to balance your knowledge."
Because of its open-source status, adaptability, control, and reliability, Linux is a preferred operating system among ethical hackers. For hacking and penetration testing, Linux provides a wide range of tools and applications. Its command-line interface makes difficult and automated tasks simpler.
read lessAnswered on 02 May Learn Unix Shell Scripting Training
Deepika Agrawal
"Balancing minds, one ledger at a time." "Counting on expertise to balance your knowledge."
Learn Unix Shell Scripting Training from the Best Tutors
Answered on 01 May Learn Unix Shell Scripting Training
Deepika Agrawal
"Balancing minds, one ledger at a time." "Counting on expertise to balance your knowledge."
The ps command writes the status of active processes and if the -m flag is given, displays the associated kernel threads to standard output. While the -m flag displays threads associated with processes using extra lines, you must use the -o flag with the THREAD field specifier to display extra thread-related columns.
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