Sponsored Content
Operating Systems Linux Ubuntu script for memory monitoring and sending mail to users in network Post 302437398 by zaxxon on Thursday 15th of July 2010 02:37:39 AM
Old 07-15-2010
Where did you get stuck - show the problem.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending Mail Thru Unix Script

What are all the things that should be configured in order to send a mail from Unix box. An eg. program of sending a mail will help me a lot!!!!!! Thanks in advance -Om (5 Replies)
Discussion started by: Omkumar
5 Replies

2. HP-UX

sending mail from a script

Hi I want to send a mail (to my id like abc@xyz.com) from a shell script running on HP Ux. Would like to include text from a file or include the file as attachment, either ways. Thanks Sidhu (6 Replies)
Discussion started by: Amardeep
6 Replies

3. Shell Programming and Scripting

sending a mail using shell script

Please help me in writing the script for sending an attachment through email.(For example my text file name is :abc.txt and it is in directory d:/abc) (1 Reply)
Discussion started by: anitha126
1 Replies

4. Programming

Solaris CPU/memory status monitoring (Shell script or c++)

i'm trying to find a way to monitor the CPU/Memory status of a solaris station using vmstat. I like to write a small script to periodically run vmstat and store the output. Can anyone show me how (preferrably in C++ if possible)? Thanks in advance. (6 Replies)
Discussion started by: shingpui
6 Replies

5. Linux

Memory monitoring and sending alert mail to users in network using shell script

i m workiing on a shell script which may monitors network memory and send alert to user if it increase a threshold (1 Reply)
Discussion started by: navdeep5673
1 Replies

6. Shell Programming and Scripting

shell script for monitoring users activities

hi I need a shell script which runs perpetually in background and monitors different aspects of different users on different files and their usages for example say there r 3 users so i want when they log in i.e. their log in time and their file access, modify and change log of each file of a... (3 Replies)
Discussion started by: rrd1986
3 Replies

7. Shell Programming and Scripting

shell script not sending mail

Hi, I have shell script which checks the filesystem check but does not send the mail. I might be missing something very simple.. could you please help? #!/bin/sh _servers="machine name" _out="/tmp/output.$$" _email="me@there.com" _sub="Disk Space Report $(date)" _mail=/usr/bin/mail... (5 Replies)
Discussion started by: Pandee
5 Replies

8. Shell Programming and Scripting

Sending mail from shell script

Hello All, I m trying to send mail from my unix script, I have used the below command mailx -s 'hi' email address < temp.txt It is not giving me any error,but I couldn't receive the mail Can you please help me. Many Thanks, Pragyan (6 Replies)
Discussion started by: prarat
6 Replies

9. Shell Programming and Scripting

Sending Mail via shell script

I am in need of a script that will send out emails while going through a NAT. What I have that works is as follows: display_remote_IP | sort | uniq | while read i do FOUND=0 for IP in `echo $ACCEPTABLEIP` do if ; then FOUND=1... (2 Replies)
Discussion started by: ldapguy
2 Replies

10. Shell Programming and Scripting

Script for sending notification mail

hi all, needed a script to send a notfication mail if the specified folder had the copy of the files that are older than 15 days i.ee for example my folder name is SAi and the files are as follows sai.txt copyofsai.txt copyofcopyofsai.txt hemanth.txt copyofcopyofhemanth.txt... (4 Replies)
Discussion started by: hemanthsaikumar
4 Replies
show(1) 						      General Commands Manual							   show(1)

NAME
show - show (list) messages (only available within the message handling system, mh) SYNOPSIS
show [+folder] [msgs] [-draft] [-[no]header] [-help] [-showproc program] [-noshowproc] [options to showproc] OPTIONS
Displays the draft message, or the current message in your +drafts folder, if you have one set up. You cannot give a msgs argument when you use this option. Displays a one-line header before the message. The header consists of the name of the folder and the message number. This is the default behavior. It can be suppressed with the -noheader option. Prints a list of the valid options to this command. Specifies an alternative program to list messages. The default is to use the program defined by the showproc: entry in the file. You can give options to the showproc program at the command line. These are passed directly to showproc by show. (If you specify an option that has a numerical value, leave no space between the argument and the value. See RESTRICTIONS for more information.) If the -noshowproc option is specified, /bin/cat is used instead of showproc. The MH command mhl can be used as a showproc to show messages in a more uniform format. See mhl(1) for more details. If you are going to use the same showproc all the time, it is advisable to specify it in your file. See mh_profile(4) for more details. The defaults for this command are as follows: +folder defaults to the current folder msgs defaults to the current message -header DESCRIPTION
Use show to display the contents of the current message. You can specify alternative messages or folders by using the +folder or msgs argu- ments. If a folder is given, it becomes the current folder. The last message shown becomes the current message. You can specify a number of messages or a range of messages using the msgs argument. If you specify more than one message, show prompts for a <RETURN> prior to listing each message. Typically, the messages are listed exactly as they are, with no reformatting. A program named by the showproc component in the file is invoked to do the listing, and any options not recognized by show are passed along to that program. The default program is more(1). By default, the show command use the more program to list each message, a page at a time. When the end of the page is reached, it waits for a <RETURN> or a space. If you press <RETURN>, show prints the next line. If you press the space bar, it prints the next screen of data. At the end of the message, show automatically returns you to the system prompt. Press q to quit before the end of the message. If the profile entry Unseen-Sequence: is present and non-empty, then show will remove each of the messages shown from the sequences named by the profile entry. RESTRICTIONS
The -header option does not work when msgs expands to more than one message. If the showproc is mhl, then this problem can be circumvented by referencing the messagename field in the mhl format file. The command show updates your mail environment before showing the message. Hence show may mark messages as seen before you actually see them. However, this is generally not a problem, unless you are using the unseen messages mechanism, and you interrupt show while it is showing unseen messages. If you use the showproc switch to specify an alternative viewer, leave no space between the options specified with the viewer and their values. For example, if you want to use the more command to scroll through messages 6 through 10 in your inbox folder, and you want to pause every five lines, you would enter the following command, where there is no space between the option n and the value 5: % show +inbox 6-10 -showproc more -n5 If there is space between the option n and the value 5, the command interprets 5 as a message number to view. If your showprocviewer is mhl, then show uses a built-in mhl: it does not actually run the mhl program. Hence, if you define your own show- proc, do not call it mhl since show will not run it. If more(1) is your showproc (which is the default), then avoid running show in the background with only its standard output piped to another process. You should re-direct the diagnostic output of show as well For example, in the following incorrect example, show will go into a tty input state: % show | print & For users of csh, the correct command is: % show |& print & For users of sh, the correct command is: % show 2>&1 | print & PROFILE COMPONENTS
Path: To determine the user's Mail directory Unseen-Sequence: To name sequences denoting unseen messages showproc: Program to show messages EXAMPLES
In the first example, show displays the contents of message 36 in the current folder: % show 36 In the next example, the pr(1) program is used to list the current message: % show -showproc pr FILES
The user profile. SEE ALSO
more(1), mhl(1), next(1), pick(1), prev(1), scan(1) show(1)
All times are GMT -4. The time now is 03:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy