Sponsored Content
Full Discussion: mailx in scripts
Operating Systems AIX mailx in scripts Post 302322491 by ak835 on Thursday 4th of June 2009 01:17:21 AM
Old 06-04-2009
CPU & Memory mailx in scripts

Guys

if i wanna send a mail ,i just type

"mailx -s "test" <ak@abc.com>

without 'CTRL+d' interrupt,mail won be sent.

If i wish to achive this in a script,how do i handle the interrupt?

Regards
Abhi
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

2. UNIX for Dummies Questions & Answers

Profile scripts versus rc scripts....

what is the difference between login and profile scripts versus the rc scripts? (1 Reply)
Discussion started by: rookie22
1 Replies

3. Shell Programming and Scripting

Help with Script using rsh and scripts within scripts

Hi, I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies

4. Shell Programming and Scripting

Running scripts within scripts from cron

Hi all, I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so. 0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log The checkstatus.sh scripts looks like this. ... (4 Replies)
Discussion started by: sirbrian
4 Replies

5. Shell Programming and Scripting

Changing the Bash Scripts to Bourne Scripts:URGENT

Hi, I have to write a program to compute the checksums of files ./script.sh I wrote the program using bash and it took me forever since I am a beginner but it works very well. I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies

6. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

7. Shell Programming and Scripting

KSH - How to call different scripts from master scripts based on a column in an Oracle table

Dear Members, I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc. I would like to create a script which will will call other scripts based on the request action. Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies

8. Shell Programming and Scripting

Calling scripts from with scripts

Hi all, I'm wondering if you could give me some advice. I am new to scripting and am getting rather frustrated that i can get my script to call another script if certain criteria is met, via command line, but I cannot get the same script to work thru the cron jobs. My first script monitors... (8 Replies)
Discussion started by: echoes
8 Replies

9. Shell Programming and Scripting

Calling multiple scripts from another scripts

Dear all, I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out. Here is the snippet:- #!/bin/bash HSFILE=/root/Test/Components.txt LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
mail(1) 						      General Commands Manual							   mail(1)

NAME
mail, rmail - send mail to users or read mail SYNOPSIS
file] person ... person ... Remarks: See mailx(1) and elm(1) for an enhanced user mail interface. DESCRIPTION
The command, when used without arguments, prints the user's mail, message-by-message, in last-in, first-out order. For each message, prints a prompt and reads a line from the standard input to determine the disposition of the message. Commands that automatically proceed to the next message exit from if already on the last message. Commands supports the following commands: <new-line> Go on to next message. Exit if already on last message. Same as <new-line>. Same as <new-line>. Delete message and go on to next message. Print message again. Go back to previous message. Save message in the named files (default is mark the message for deletion from the user's mailfile, and proceed to next message. Same as Save message without its header (the ``From ...'' line), in the named files (default is mark the message for deletion, and go on to next message. Mail the message to each named person, mark the message for deletion, and go on to next message. Put undeleted mail back in the and stop. Same as Abort. Leave original unchanged and stop. Escape to the command interpreter and execute command. Print a command summary. Same as Command-Line Options The following command-line options alter printing of the mail: Cause messages to be printed in first-in, first-out order. Suppresses printing of mail and returns the exit value: 0 = Mail present 1 = No mail 2 = Other error Prints all mail without prompting for disposition. Causes to terminate if an interrupt is received. Normally an interrupt only causes the termination of the printing of the current message. Same as Causes to use file (for example, instead of the default mailfile. Causes the outbound message to be preceded by each person the mail is sent to. A person is usually a user name recognized by (see login(1)). If a person being sent mail is not recognized, or if is interrupted during input, the file will be saved to allow editing and resending. Note that is regarded as a temporary file in that it is recreated every time needed, erasing the previous contents of Causes to deliver mail directly. This isolates from making routing decisions, and allows it to be used as a local delivery agent. Typically this option is used by auto-routing facilities when they deliver mail locally. When persons are named, takes the standard input up to an end-of-file (or up to a line consisting of just a and adds it to each person's mailfile. The message is preceded by the sender's name and a postmark. To denote a recipient on a remote system, prefix person by the system name and exclamation mark (see uucp(1)). Everything after the first exclamation mark in person is interpreted by the remote system. In particular, if person contains additional exclamation marks, it can denote a sequence of machines through which the message is to be sent on the way to its ultimate destination. For example, specifying as a recipient's name causes the message to be sent to user on system System then interprets that destination as a request to send the message to user on system This might be useful, for instance, if the sending system can access system but not system does not use if the remote system is the local system name (i.e., localsystem!user). The can be manipulated in two ways to alter the function of The other permissions of the file can be read-write, read-only, or neither read nor write to allow different levels of privacy. If changed to other than the default, the file is preserved, even when empty, to perpetu- ate the desired permissions. The file can also contain the first line: person which causes all mail sent to the owner of the to be forwarded to person. This is especially useful for forwarding all of a person's mail to a given machine in a multiple-machine environment. In order for forwarding to work properly the should have "mail" as group ID, and the group permission should be read-write. only permits the sending of mail. uses as a security precaution. When a user logs in, the command can be used to detect the presence of mail, if any, and so indicate. When terminating, produces a notifi- cation message if new mail arrived while was running. EXTERNAL INFLUENCES
Environment Variables determines the format and contents of the displayed date and time strings. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). When set, the environment variable specifies a directory to be used for temporary files, overriding the default directory International Code Set Support Between HP-UX systems, single- and multi-byte character code sets are supported within mail text. Headers are restricted to characters from the 7-bit USASCII code set (see ascii(5)). WARNINGS
Conditions sometimes result in a failure to remove a lock file. After an interrupt, the next message may not be printed. To force printing, type a Lines that look like postmarks in the message (that is, ``From ...'') are preceded by treats a line consisting solely of a dot as the end of the message, except when the command is used. The maximum allowable line length in mail messages is 8 times that of bytes as defined in If line length exceeds this limit, truncates the line starting at beginning-of-line, and uses only the trailing 8 * characters. Using two separate mail programs to access the same mail file simultaneously (usually inadvertently from two separate windows) can cause unpredictable results. Some sites that have programs that adhere strictly to RFC-822 will fail to deliver a message if any of the recipient fields below is miss- ing. You can add the RFC-822 commands into the mail program buffer/editor. For instance: FILES
Lock for mail directory Unmailable text Temporary file Variable containing path name of Saved mail To identify sender and locate persons Directory for incoming mail (mode group ID Incoming mail for user; that is, the mailfile (mode group ID SEE ALSO
login(1), mailx(1), uucp(1), write(1). STANDARDS CONFORMANCE
mail(1)
All times are GMT -4. The time now is 07:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy