Sponsored Content
Top Forums Shell Programming and Scripting Sender name in the format "MAC [mac@yahoo.com]" in mailx command. Post 302705999 by mac4rfree on Wednesday 26th of September 2012 02:18:28 AM
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

 

2 More Discussions You Might Find Interesting

1. 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

2. 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
HP-SEARCH-MAC(1)					User Contributed Perl Documentation					  HP-SEARCH-MAC(1)

NAME
hp-search-mac -- HP switch search tool. DESCRIPTION
HP-search-MAC is an util that can query HP switches for their connection table. It then allow you to search for a MAC address and tell you where it is physically connected (best match first). . The functionality is similar to traceroute but on Ethernet level and only for HP switches. USAGE
hp-search-mac [options] [MAC] [...] OPTIONS
hp-search-mac [options] mac [ [options] mac ] [...] options: --dl n Set debug level to n. --help Print this help. --hostname host[=>community] | -h host[=>community] Set a switch name to search. You can also set this in /etc/hp-search-mac.conf or ~/.hp-search-mac.conf. The hash to set is \%switches. Mac: You can use some different formats: ff:ff:ff:ff:ff:ff (hex) ff-ff-ff-ff-ff-ff (hex) 0.123.0.12.0.12.0 (dec) CONFIGURATION: \%switches: This is a normal perl hash of the form \%switches = ("host" => "community", ...); AUTHOR
Ola Lundqvist <ola@inguza.com> SEE ALSO
snmp-walk(1) snmp-get(1) hp-search-mac Mon Apr 7 21:21:44 CEST 2008 HP-SEARCH-MAC(1)
All times are GMT -4. The time now is 03:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy