![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Carbon copy for a mail in mailx command | miltony | Shell Programming and Scripting | 11 | 05-15-2009 02:26 AM |
| mailx -c option | pt14 | SUN Solaris | 0 | 01-28-2008 09:13 AM |
| Postfix Problem under mailx/sendmail command | monkfan | UNIX for Dummies Questions & Answers | 0 | 04-10-2007 04:07 AM |
| Problem with mailx command when sending attachment. | miltony | Shell Programming and Scripting | 2 | 12-02-2005 12:43 PM |
| Carbon Copy to exchange user | mclevy | UNIX for Dummies Questions & Answers | 1 | 11-18-2002 08:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi,
I have problems with the cc option in mailx command. Just went through some of the similar threads but none provides a satisfactory explanation. I have a script using the mailx command in the following way: (echo `cat mailsub.txt` ; uuencode attachment.csv attachment.csv) | mailx -s "Subject`date`" -r $unm $unm -c $uno $unm is my mail id . I want to sent a carbon copy to the $uno mail id. But while running this script i am getting the following error, "can not chdir(/var/spool/mqueue): Permission denied". Not getting any mails also. I could see alternate options of using sendmail command etc., but here in particular I have to use the mailx command. If somebody can help me with this it would be of help: Thanks in advance, Regards, Smitha |
|
||||
|
I don't have a mailx command handy that also has the -r option, so can't test out my suggestion. Typically, the recipient(s) are the last arguments on the command line. Since you say this problem occurs when you CC, try movnig the -c $uno option before the recipient $unm:
Code:
... mailx -s "Subject`date`" -r $unm -c $uno $unm |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|