The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
doubt in awk jisha Shell Programming and Scripting 4 04-16-2008 01:02 AM
awk doubt.. esham Shell Programming and Scripting 11 10-10-2007 11:24 PM
mailx error message : mailx: NUL changed to @ BG_JrAdmin UNIX for Dummies Questions & Answers 2 12-01-2005 07:27 AM
doubt in mailx ranj@tcs Shell Programming and Scripting 2 04-02-2005 11:42 PM
doubt on name shruti_mgp UNIX for Dummies Questions & Answers 1 03-10-2005 07:21 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-26-2007
Registered User
 

Join Date: Jul 2005
Posts: 24
Mailx Doubt

Hi,
I just wanted send corbon copy in mailx command, could you please assist me?

I tried the below but it didn't work

cat sample.txt|mailx -s "hi" -c xyz@gmail.com abc@gmail.com

Shahnaz.
Reply With Quote
Forum Sponsor
  #2  
Old 04-26-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
This should be fine - works for me

Check your maillog. For example, on one of my Solaris 10 boxes,
Code:
mailx -s "Testing" -c me@localhost me@somewhere-else.com < infile
produces the log excerpt:

... to=me@localhost,me@somewhere-else.com ...

as it's sent.

Can you see a similar line in your maillog (depending on your OS, this may be /var/log/syslog, /var/log/maillog, /var/log/mail.log - check your syslog configuration).

Does your mail make it to the primary recipient? Or doesn't it arrive at all? In that case, check your local MTA configuration.

Cheers
ZB
Reply With Quote
  #3  
Old 04-26-2007
Registered User
 

Join Date: Jul 2005
Posts: 24
Thanks for your reply.

primary recipient is getting the mail, it doesn't show anything wrong. But mail is not going to -c <mail id>

to=xyz@gmail.com, ctladdr=bas (20020/10)

i can see the above line from the log.

SunOs 5.9 si the OS for me.

Shahnaz.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0