Quota threshold


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Quota threshold
# 15  
Old 02-13-2009
Quota threshold

Sorry guys,there was no filesystem as export in my unix box.
I have changed the script and it executed all right.
But the problem now is that I didn't recieve any mail after the execution of the program.
The message which i echoed got displayed on my screen but I didn't get any mail.

Anyone here have any idea about what might be the reason for the same.

Anything wrong with my code or any permissions required??

As i am new to this mail stuff.

Plese guide me further.
# 16  
Old 02-13-2009
You can't send a mail with no message like this. Put an echo | in front of it or echo some senseful message text via the pipe into mail.

Example:
Code:
echo | mailx -s "URGENT: Low disk space for /home/t2/ ()" -r abc@sd.com

or

Code:
echo "the subject says it all!"| mailx -s "URGENT: Low disk space for /home/t2/ ()" -r abc@sd.com


You should also enclose the subject wit double quotes - not sure if you did in your original script but I forgot them here and added them.

Last edited by zaxxon; 02-13-2009 at 11:05 AM.. Reason: added comment
# 17  
Old 02-13-2009
Check your junk emails. Sometimes the mails from the servers are delivered in the junk folder.
# 18  
Old 02-13-2009
Hi Zaxxon ,

I think we have now hit the bulls eye..
Will let you know when I am finished with it.
Really appreciate your help in this regard..Thanks a lot....
# 19  
Old 02-17-2009
Also, I looked at the code I posted, I had changed your "mailx ...." line into "echo mailx ...." so that particular version is just going to show you the output, not actually do anything. Taking the "echo" out will make it actually do something.
--
Quentin
# 20  
Old 02-23-2009
QUOTA threshold

Hi All,

Thanks for your help.

I am able to send mail alright ,but the problem is apart from the specified email id say abc@sd.com the mail is alos shot to root@sd.com,/@sd.com,/home@sd.com.
I don't want to send the email to any other person apart from the mail id specified in the script.

Can anyone here guide me for the same?

Thanks...
# 21  
Old 02-24-2009
send email should not be the -r option.

-r A means A send out email.

if need send email to you ,just

echo sth| mailx youraddress@host.com
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Threshold for swap memory

hi guys the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high.... Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect... (3 Replies)
Discussion started by: karlochacon
3 Replies

2. Shell Programming and Scripting

Diff two files with threshold value

i have two big file which have thousand of line. i have to sort on two key fields then diff the file. if the interger value of one of the column is less then or greater then 1 it should ignore it. for example File1 abc|7000|jhon|2.3 xyz|9000|sam|6.7 pqr|8000|kapi|4.6 File2... (11 Replies)
Discussion started by: Nishi2011
11 Replies

3. Solaris

Rootvol above threshold

Hi there, Root filesystem is above threshold, I have search and cleared unwanted files which are filling up space. But the root fs is still above threshold. I don't know about veritas volume management. Can anyone show me how to solve this. Du shows /proc is occupying a lot of space. Most of the... (2 Replies)
Discussion started by: sundar63
2 Replies

4. UNIX for Dummies Questions & Answers

threshold

Hi, I have a table with 14 columns. How can I filter the columns 2-14, so that I get only those rows back in which the data values are >= 6 in 5 or more columns. :confused: E.g. A 6 6 3 6 7 8 B 1 2 3 4 5 5 C 2 2 2 6 7 8 Here I should only get back the row A. I would like to work from... (5 Replies)
Discussion started by: danieladna
5 Replies

5. UNIX for Dummies Questions & Answers

Load Average threshold

What should be the threshold for load average of a quad core processor? What constitutes "good" and "bad" load average values? (2 Replies)
Discussion started by: proactiveaditya
2 Replies

6. UNIX for Advanced & Expert Users

how to lessen the threshold of diskusgae %

Hi experts, I found- $ tail -f /var/adm/messages .... .... Jan 17 05:16:31 server01b last message repeated 6 times Jan 17 05:17:05 server01c ufs: NOTICE: alloc: /var/fileserver:file system full but I checked with df -k and found /var/fileserver is only 49% is used. It means... (7 Replies)
Discussion started by: thepurple
7 Replies

7. Shell Programming and Scripting

Check Quota of the Environment and mail the user if the threshold increases.

Hi All, I wish to check the quota of the system and if it increases the threshold value,I need that a mail is shot to the environment user informing hi/her about the same. I know it can be done using cron jobs and warnquota command but I am unable to implement it as I am not acquianted with... (1 Reply)
Discussion started by: Taranjeet Singh
1 Replies

8. UNIX for Advanced & Expert Users

Check Quota of the Environment and mail the user if the threshold increases.

Hi All,I wish to check the quota of the system and if it increases the threshold value,I need that a mail is shot to the environment user informing hi/her about the same.I know it can be done using cron jobs and warnquota command but I am unable to implement it as I am not acquianted with both... (1 Reply)
Discussion started by: Taranjeet Singh
1 Replies

9. Shell Programming and Scripting

apache threshold

Hi folks, how can i check apache threshold values via shell scripting and what factors need to check via shell scripting process or number of users or what. pls do advice me. Thanks, Bash (9 Replies)
Discussion started by: learnbash
9 Replies
Login or Register to Ask a Question