I was going to post a question on this matter, but I'm glad someone is
discussing it, I'm trying to accomplish the same thing, I added the line:
mail -s " Systen Rebooting - SERVER_4" [EMAIL PROTECTED]
To my rc.local file so everytime the server gets rebooted, I get
notified...by email
the problem is, when running this command manually, it just seems to hang
and I know the mail serve works fine,..why would it be hanging ?? ,..is this
the right sysntax??
Thanks
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Talkington
Sent: Thursday, March 15, 2001 6:01 PM
To: [EMAIL PROTECTED]
Subject: Re: Re: sendmail and Red Hat 6.2
-----BEGIN PGP SIGNED MESSAGE-----
RODOLFO MARTIN NIETO wrote:
>I have already done it with mail, but with mail the problem I have
>it's that I don't know how to set MyDescription, because -f option
>doesn't work.
>Is it posible to set MyDescription and the subject at the same time?
>
>Thanks for your help.
Are you trying to specify both a From: and a Subject: at the same
time? In your example:
sendmail -f MyDescription [EMAIL PROTECTED] < file.txt
If the first line of file.txt is "Subject: readme", then your mail
will arrive "From: MyDescription", "Subject: readme". That's how I do
it, though there may be a better way. Be aware, though, that you
should only use the -f option as root. If it's issued as a normal
user, a warning gets added to the message headers (man sendmail for
details).
- -d
- --
David Talkington
Prairienet
[EMAIL PROTECTED]
217-244-1962
PGP key: http://www.prairienet.org/~dtalk/dt000823.asc
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6
iQEVAwUBOrFJwb1ZYOtSwT+tAQG9IQf/fGCEpeQNeIonletHB46PDW1ctv0m95ZQ
op+v/q5k6WD8+b1zT9hT5EN4tlQmFpiDQ3da/cGJVhhN8B9S+0u2oLQ8iPcwEq/N
tvdDGcGYw7qXqVJje4KWmKd3mlamMY2rnhiGPinpGpcxayZNGS2t8RSv+iCeeZG3
7VFr0dioSy24ZloxCAMd/PFgMkq3byq9iNamuVt/lLMqW53rdg1pfTf1FPhUGOIy
cggrqvBl405LRSa08XCxQO57/JlhAJ9H5p7vAYr8ka0BUlKC+O4WqjeAPdPm4nxB
Jf1HQot3rK4j1lReMBWSAzrltdFQEwYfvf0lmoQKlLGANuGvjVkLrg==
=UZbW
-----END PGP SIGNATURE-----
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/2001
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.237 / Virus Database: 115 - Release Date: 3/7/2001
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list