Sender name in the format "MAC [mac@yahoo.com]" in mailx command.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Sender name in the format "MAC [mac@yahoo.com]" in mailx command.
# 1  
Old 09-26-2012
Sender name in the format "MAC [mac@yahoo.com]" in mailx command.

Hi Guys,

I want the sender name in the format of "MAC [mac@yahoo.com]" in the mailx command.

I tried the below command but it is throwing error.

Code:
> mailx -s "Test" -r 'MAC [mac@yahoo.com]' xxx@gmail.com
EOT
[mac@yahoo.com] contains invalid character '['
No such file or directory
. . . message not sent.
xxcd:~>

Can somebody help me out here.

Cheers!!!!

---------- Post updated at 11:48 AM ---------- Previous update was at 11:33 AM ----------

I found the solution.

Code:
mailx -s "Test" -r "MAC <mac@yahoo.com>" xxx@gmail.com

Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

2. UNIX for Dummies Questions & Answers

the "jobs" command on Mac OSX

HI, I am learning the basics of UNIX on my Mac OS X system but whenever I type the "jobs" command I just get the prompt again, with no output. Regardless of how many programmes or activities are processing. Any ideas? (4 Replies)
Discussion started by: peterluxford
4 Replies
Login or Register to Ask a Question
MAC_TEST(4)						   BSD Kernel Interfaces Manual 					       MAC_TEST(4)

NAME
mac_test -- MAC framework testing policy SYNOPSIS
To compile the testing policy into your kernel, place the following lines in your kernel configuration file: options MAC options MAC_TEST Alternately, to load the testing module at boot time, place the following line in your kernel configuration file: options MAC and in loader.conf(5): mac_test_load="YES" DESCRIPTION
The mac_test policy module implements a testing facility for the MAC framework. Among other things, mac_test will try to catch corrupt labels the system is attempting to destroy and drop to the debugger. Additionally, a set of statistics regarding the number of times various MAC framework entry points have been called is stored in the security.mac.test sysctl(8) tree. Label Format No labels are defined for mac_test. SEE ALSO
mac(4), mac_biba(4), mac_bsdextended(4), mac_ifoff(4), mac_lomac(4), mac_mls(4), mac_none(4), mac_partition(4), mac_portacl(4), mac_seeotheruids(4), mac(9) HISTORY
The mac_test policy module first appeared in FreeBSD 5.0 and was developed by the TrustedBSD Project. AUTHORS
This software was contributed to the FreeBSD Project by Network Associates Labs, the Security Research Division of Network Associates Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (``CBOSS''), as part of the DARPA CHATS research program. BUGS
See mac(9) concerning appropriateness for production use. The TrustedBSD MAC Framework is considered experimental in FreeBSD. While the MAC Framework design is intended to support the containment of the root user, not all attack channels are currently protected by entry point checks. As such, MAC Framework policies should not be relied on, in isolation, to protect against a malicious privileged user. BSD
December 1, 2002 BSD