UbuntuThis forum is for the discussion of Ubuntu Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Thanks for pointing out. It was just a typo occurred when I tried to paste it. In the original script it is not there. The script was working till yesterday perfectly well on the same system. Today, I executed dist-upgrade and firefox was upgraded. I think the problem has started after that. But, I fail to see any connection.
PS: As I already mentioned, the problem is not with the script. Running the mail (/usr/bin/mail) doesn't work either.
Well what happens when you run the command manually?
Do try escaping the !. But also, you may be using it wrong. Here:
alucard@organa:~$ mail -s "**Reminder: Time to write summary \!" firstname.lastname@example.org<ENTER>
testing 1 2 3<ENTER>
And it tries to send (but bounces due to the fake address):
Jul 20 14:50:44 organa postfix/smtp: 912D140282: to=<email@example.com>, relay=smtp.comcast.net[184.108.40.206]:25, delay=1.4, delays=0.08/0.08/1/0.19, dsn=5.0.0, status=bounced (host smtp.comcast.net[220.127.116.11] said: 550 [PERMFAIL] destination not valid within DNS (in reply to RCPT TO command))
No, ctrl+D is the EOF character. Ctrl+z is the Background Process character.
Originally Posted by man mail
To send a message to one or more people, mail can be invoked with arguments which are the
names of people to whom the mail will be sent. You are then expected to type in your mes-
sage, followed by a control-D ('^D') at the beginning of a line.
You can also try ending your message with a period on its own line, as in my example.
Sorry to revive an old thread but I have a similar problem.
I'm trying to send an email from a script using the mail command and the email gets immediately delivered to the local mailbox and never goes out. I think its a problem with a configuration file, but I'm not sure how or where to configure.