07-25-2004
Sending Error msg from HP-UX to E-mail address
Sometimes, for any reason, the UX System sends messages to /var/mail/root and/or to Error Log of the guardian.
I'll appreciating if you help me to configure so that those messages are also sent to the System Administrator's e-mail address.
Regards
Gege
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have been sending an email attachment from my unix box, but keep getting an error? All though the recipient still receives the email and attachment. Will this error cause problems in the future and how to I cure it?
$ uuencode PReSvPRINTER.txt file | mailx -s "File" me@world.com
uuencode:... (1 Reply)
Discussion started by: dbrundrett
1 Replies
2. Shell Programming and Scripting
i am creating a script that will send an email to a list of recepients listed in a file.
if for some reason the mail was undelivered, is it possible to redirect the "undelivered email notification" to another email address?
thanks! (0 Replies)
Discussion started by: tads98
0 Replies
3. HP-UX
Dear Brothers in Unix
I would like to change some HP-UX settings in order that the system send a message to root it should be copied to my e-mail address in Microsoft Exchange Server.
Please can you help me.
Best Regards and thanks in advance
Gege (2 Replies)
Discussion started by: cgege
2 Replies
4. Shell Programming and Scripting
help i get this error when i sending a mail
send-mail: fatal: open /etc/postfix/main.cf: No such file or directory
Can't send mail: sendmail process failed
this is my coding
echo "$PRONAME is being restart" | mailxs "Subject:Process" "sally@$THISHOST"
i wish to send this mail to my... (2 Replies)
Discussion started by: kkc
2 Replies
5. Shell Programming and Scripting
Hello,
I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail.
How can I use the following awk statement in a perl script?
grep UNIXadmins /root/mail.conf | awk '{ print $2}'
and use the output to send a e-mail.
Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies
6. Shell Programming and Scripting
Hi All,
OS:Red Hat Linux 4 86x64
Below is my shell script which is not sending mail to the mail recipient:
#!/bin/bash
export MAILLIST="xyz@yahoo.com"
cd <path_to_the_script_perf_report.sql>
sqlplus / as sysdba @perf_report.sql
if
then
cat <path_to_the_script/*MONTHLY*REPORT*.lst... (6 Replies)
Discussion started by: a1_win
6 Replies
7. Shell Programming and Scripting
Hi All,
I used before a simple routine code in tcl to send mail.
package require smtp
package require mime
package require Tcl
proc send_simple_message {recipient email_server subject body} {
set token
mime::setheader $token Subject $subject
smtp::sendmessage $token \
... (0 Replies)
Discussion started by: zivsegal
0 Replies
8. Shell Programming and Scripting
Hi,
This is the end of the script. When i try to execute the script, i am getting the error.
Please help me as to what is wrong with this script.?
elif
echo 'Load Failed -- Return Code =' $rc
subject="Consent table load failed"
(
echo "The log file is attached to... (1 Reply)
Discussion started by: msrahman
1 Replies
9. Shell Programming and Scripting
Hi guys...
I am busy writing a script to notify me via an mail if my application is down. I have done that.
Now I want this script to stop sending mails after five mails were sent but the script should keep on checking the application.
When the application is up again that count should be... (5 Replies)
Discussion started by: Phuti
5 Replies
10. Red Hat
Whats the difference between mail and mailx?
I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL)
... (1 Reply)
Discussion started by: RedSpyder
1 Replies
forward(4) Kernel Interfaces Manual forward(4)
NAME
forward - forward mail
SYNOPSIS
/var/adm/forward/username $HOME/.forward
DESCRIPTION
The .forward file allows a user to forward messages to another host, or to invoke programs (such as vacation(1)) to process their mail. It
is formatted as a series of comma-separated addresses in the form: addr_1, addr_2, ... Alternatively, each address can be on a separate
line.
The newer sendmail.v8 program also allows the use of comments (lines that begin with a ``#'') and blank lines.
As with the aliases(4) file, mail messages can be forwarded to another host or given to programs for further processing. The following is
an example of the vacation program. Assuming that the user's name is myra, create a .forward file and add the following line: myra,
"|/usr/bin/vacation myra"
The previous example forwards mail to myra (the backslash prevents an accidental aliasing loop), and also sends a copy of the message to
the vacation program.
For security reasons, the file must be owned by the user or by root and it should be writable only by the file owner. In addition, the
file must be readable by the owner (myra) or root.
On traditional systems, only the $HOME/.forward file is checked. The sendmail.v8 program allows the use of the system-wide forwarding
directory /var/adm/forward. By default, this directory is checked for a forward file prior to examining the users $HOME directory.
FILES
System-wide forwarding file. The per-user forwarding file.
RESTRICTIONS
The sendmail command can hang trying to read the user's $HOME/.forward file. If the user's home directory is NFS-mounted and temporarily
unavailable, sendmail will stall until the directory becomes available again. The use of non-NFS mounted directories for the forwarding of
files is recommended.
The use of /var/adm/forward is supported only by sendmail.v8.
The actual path for /var/adm/forward is configurable in the sendmail.cf file.
Incorrect file permissions/ownership are quietly ignored.
It is easy to create an accidental loop, for example, on host_a myra@host_b and on host_b myra@host_a
RELATED INFORMATION
Commands: aliases(4), sendmail.cf(4), sendmail(8) delim off
forward(4)