06-08-2010
Overwriting sender's information for mailx
Hello Forum members.
We currently have a reusable script called "send_email.sh" that is used to send us alerts when our daily jobs are completed. Script uses the mailx utility and below is a sample message:
-----Original Message-----
From: Servacct ETL process owner - Manager Database System [mailto:abc@google.com]
Sent: Tuesday, June 08, 2010 10:09 AM
To: Data-Warehousing-Support
Subject: SUCCESSFUL - EXT_SAFEWATCH.BD_SAFEWATCH
SUCCESSFUL - EXT_SAFEWATCH.BD_SAFEWATCH
-----------------------------------------------------------------------
Is there a way that I can overwrite the sender info to the following:
From: "Servacct ETL process owner - Manager Database System"
To: "EDW Prod"
Thank you.
---------- Post updated at 03:38 PM ---------- Previous update was at 01:11 PM ----------
Please close post. I was able to find the solution.
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I'm on UNIX -Solaris...
I'm trying to send mail usin Mailx..... The script is working fine and attachments are also being sent....
BUT, when I receive the mail,, the sender address shown is the unix login id name.... Any way by which I could manipulate this in my script command or any... (1 Reply)
Discussion started by: vasan_srini
1 Replies
2. UNIX for Dummies Questions & Answers
If I use the "Mail" link instead of the "mail" link to ../mailx I get this error.
Mail so-n-so @whatever.com
mailx: NUL changed to @
Unknown command: "postmaster"
The email still goes through but i get the error.
If I use "mail" it goes thru without the error.
Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
3. Shell Programming and Scripting
How to overwrite every time a particular portion of a file?
---------- Post updated at 02:16 PM ---------- Previous update was at 02:07 PM ----------
I have a file whose contents are something like:
Output of "apachectl fullstatus" command:
---------------------------------------------... (3 Replies)
Discussion started by: proactiveaditya
3 Replies
4. Cybersecurity
Hi all,
I have configured a user and provided him the priviledge to vi a file owned by root account. The settings are as below
$ id
uid=1661(conuser) gid=6615(staff)
$ sudo -l
(root) NOPASSWD: /usr/bin/vi /opt/DBconserver/etc/conserver.cf
I just realised that when the user execute... (5 Replies)
Discussion started by: mohzub
5 Replies
5. UNIX Desktop Questions & Answers
I have loads of files in different directories which I do miner changed on them and till now I have to create totally new directories for them, specially as I deal with a whole directory at once :wall::wall::wall::wall:
it creates such as mess really
e.g.
FILES="F1/*"
for X in $FILES
do... (2 Replies)
Discussion started by: A-V
2 Replies
6. Shell Programming and Scripting
Hi Guys,
I want the sender name in the format of "MAC " in the mailx command.
I tried the below command but it is throwing error.
> mailx -s "Test" -r 'MAC ' xxx@gmail.com
EOT
contains invalid character 'xxcd:~>
Can somebody help me out here.
Cheers!!!!
---------- Post... (0 Replies)
Discussion started by: mac4rfree
0 Replies
7. Shell Programming and Scripting
Hi ,
mailx is unable to send mail , I am getting the following error
Diagnostic-Code: SMTP; 553 5.1.8 <bc00644@dev-app01-wms.domain.fds>... Domain of sender address bc00644@dev-app01-wms.domain.fds does not exist
Can anyone tell me what can be the possible fix for this (2 Replies)
Discussion started by: swayam123
2 Replies
8. Shell Programming and Scripting
Hi, An application is transferring a file to linux system with same file name. As file is transferring with same name always file will be overwritten. In this case we want to know what times file was overwirtten like below.
Modify: 2014-05-12 00:52:01.000000000
Modify: 2014-05-12... (2 Replies)
Discussion started by: Satyak
2 Replies
9. UNIX for Beginners Questions & Answers
Hi,
Is there anyway to customize the sender name when sending a mail from solaris or linux or any other unix box using mailx command?
Thanks in advance. (1 Reply)
Discussion started by: ssk250
1 Replies
10. Shell Programming and Scripting
Hi,
I m using mailx to send email. I am using
sender=server name(display name)
echo "body" | mailx -s "subject" -b "bcc address" "to address" -- -f "$sender".
I should get email with sender as only display name. In stead i am getting displayname@server address.
Please suggest
Use code... (1 Reply)
Discussion started by: usrrenny
1 Replies
set_color(1) fish set_color(1)
NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)