/usr/bin/mail doent work
Hi guys,
I am new to ubuntu. I just installed kubuntu 7.04 on my workstation at work. I installed sendmail and mailutils, to be able to send mails from command-line and also from scripts. I have following script set in my crontab which doesnt work now. Even from command line, the /usr/bin/mail program doesn't work. It hangs for ever. Code:
regards, Hardik |
Change
/#!/bin/bash to #!/bin/bash |
hi,
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. regards, Hardik |
Well what happens when you run the command manually?
Do try escaping the !. But also, you may be using it wrong. Here: Code:
alucard@organa:~$ mail -s "**Reminder: Time to write summary \!" e.mail@gmail23353.com<ENTER> Jul 20 14:50:44 organa postfix/smtp[9652]: 912D140282: to=<e.mail@gmail23353.com>, relay=smtp.comcast.net[204.127.192.17]:25, delay=1.4, delays=0.08/0.08/1/0.19, dsn=5.0.0, status=bounced (host smtp.comcast.net[204.127.192.17] said: 550 [PERMFAIL] destination not valid within DNS (in reply to RCPT TO command)) |
Hi,
Thanks for your reply. Even if I try totally different subject, it delivers no mail. Here is the output I get when running manually from command line. Code:
mail -s "subject" h.mehta@dresdner-cetelem.de regards, Hardik |
No, ctrl+D is the EOF character. Ctrl+z is the Background Process character.
Quote:
|
Hi,
Ctrl+D doesn't work. It doesn't react to it. I also tried like this.. Code:
$mail -s "subject" e.mail@gmail.com << EOF regards, Hardik |
Ctrl+D sure works for me. (it then asks me for any CC: addresses). So I don't know what your problem is.
|
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. |
All times are GMT -5. The time now is 01:34 AM. |