10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Running below line gives 3957 as length of longest line in file 20121119_SRMNotes_init.dat
awk ' { if ( length > 3950 ) { x = length } }END{ print x }' 20121119_SRMNotes_init.dat
While wc -L 20121119_SRMNotes_init.dat gives output as 4329. Why is there a difference between these two commands.... (2 Replies)
Discussion started by: Satish Mantha
2 Replies
2. Shell Programming and Scripting
cat T|awk -v format=$format '{ SUM += $1} END { printf format,SUM}'
the file T has below data
usghrt45tf:hrguat:/home/hrguat $ cat T
-1363000.00123456789
-95000.00789456123
-986000.0045612378
-594000.0015978
-368939.54159753258415
-310259.0578945612
-133197.37123456789... (4 Replies)
Discussion started by: zulfi123786
4 Replies
3. Shell Programming and Scripting
Hi Guys,
I am developing a script to monitor GUI based FileNet Component "Component Manager" which logs it's running status in a log file.
Log file is a huge file so in script I put last 300 lines of log file in seperate file and run script every 5 minutes.
I am searching the string... (2 Replies)
Discussion started by: dhirajdsharma
2 Replies
4. Shell Programming and Scripting
Hi ,
Does anyone have a script for monitoring disk failures on a Solaris 10/11 box? Need one today ASAP, thnks in advance. (2 Replies)
Discussion started by: walnutpony123
2 Replies
5. Shell Programming and Scripting
It's the old thread "Disk Space Monitoring Script", modified for UNIX
This is the new code:
df -k | awk ' { if ( int($4) > 90)
{subject = $1 " More than 90% disk usage. Used: " $4
email = "email@test.com"
print subject
cmd = "mailx -s \"" subject "\" " email
cmd | getline... (4 Replies)
Discussion started by: dungureanu
4 Replies
6. Solaris
Hi,
I have a very frustrating issue! I hope you guys can assist
When a disk is presented out the iSCSI target display a lower disk capacity
SOLARIS VERSION is SOLARIS 10 05/09 Kernel Patch 139555-31
ISCSI Patch 119090-31, 141878-11
Unix Commands To discover Target
bash-3.00# i... (0 Replies)
Discussion started by: capitalexall
0 Replies
7. UNIX for Advanced & Expert Users
Hello,
I'm having a problem with xbindkeys giving the wrong mapping information, hence I can't get it work at all when trying new mappings from this machine.
From another computer, I have some definitions for xbindkeys (made with xbindkeys-config). These key codes work correctly on this... (0 Replies)
Discussion started by: Narnie
0 Replies
8. SCO
New IBM x3400 machine with a raid 5 configuration. Go through the early setup routine to the point where I answer the questions for time zone, machine name. Enter continue and get a message stating :
"Incorrect disk partitioning cannot continue" This is a sco message, refers to the installation... (1 Reply)
Discussion started by: wjbtms
1 Replies
9. Shell Programming and Scripting
Hi,
In my shell script when I am using mv command using shell variables it is giving me error of syntax. Following is the shell script:
file_edifice="*.txt"
fquote="'"
fdquote=\"
for file in $file_edifice
do
file_name=$fquote$file$fquote
tofile_name=`date... (5 Replies)
Discussion started by: gammit
5 Replies
10. Shell Programming and Scripting
#!/bin/bash
# Disk Space Monitoring for more than 95 %
# and Sending Alerts by Mail
if ;
then
`df -k |awk '$5 > 95 {print $1 " ----------- " $5}' |mailx -s "More than 95% disk usage in DEV" email@test.com';
else
exit 0
fi
I get the... (8 Replies)
Discussion started by: sriram003
8 Replies