Hi all,
I would like to know if I can send unix mail to 'external email addresses'.
My unix server is leo@ABCcompany.com.
I am able to send emails to firstname.lastname@ABCcompany.com.
But, we have some email addresses in our team on our parent company's server - ex:... (2 Replies)
Suppose i have a txt file that is the list of the addresses,something like:
lala0045 john james
lala0234 george james
and i want to send an email to lala0045@blabla.com and lala0234@blabla.com,the same domain...what is the exact syntax i should use in my script?
there is a command... (10 Replies)
Hello,
I'm working on unix with grep (GNU grep) 2.5.1. I'm going through some of the newer regex syntax using Regular Expression Reference - Advanced Syntax a guide.
ls -aLl /bin | grep "\(x\)"
Which works, just highlights 'x' where ever, when ever.
I'm trying to to get (?:) to work but... (4 Replies)
Hi,
If I want my script to send a mail to multiple recipients I can do the following:
if
then
echo $err_string1 | mailx -s "UAT CPU ALERT" 1@email.com
echo $err_string1 | mailx -s "UAT CPU ALERT" 2@email.com
fi
Can this also be done something like:
... (1 Reply)
Hi, I'm trying to write a script that will check multiple files in a directory (all the relevant filenames begin "TT04.NOTES") for e-mail addresses, and then print these addresses to screen with a count at the bottom. I'm a bit of a novice with Perl but thought it would be the best tool for the... (2 Replies)
Hi
I have an input file with a list of random IP addresses, each on a new line. Below is just an example as I omitted the real IP addresses for obvious reasons.
Input: random_ip.txt
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1
10.0.0.1... (7 Replies)
Hi I normally ask questions on coding but I think there is a code that can do this. I have regular text throughout my file and I want to extract all e-mail addresses from it (rather than going and searching each one).
E-mails all have @ so I assume there is a way.
Thanks
Phil (6 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Let's say if we have a file with a lot of information.
For example:
iiadam
otterhedgehog
kayleigh... (2 Replies)
I wish to traverse all files and folders under a given directory say "/tmp/configuration" and for all ip address mentioned therein.
I tried find ./ -type f | xargs grep "*.*.*.*" but it does not populated the correct results.
Can you please suggest. (1 Reply)
Discussion started by: mohtashims
1 Replies
LEARN ABOUT PLAN9
rewrite
REWRITE(6) Games Manual REWRITE(6)NAME
rewrite - mail rewrite rules
SYNOPSIS
/mail/lib/rewrite
DESCRIPTION Mail(1) uses rewrite rules to convert mail destinations into commands used to dispose of the mail. Each line of the file is a rule. Blank
lines and lines beginning with # are ignored.
Each rewriting rule consists of (up to) 4 strings:
pattern
A regular expression in the style of regexp(6). The pattern is applied to mail destination addresses. The pattern match is case-
insensitive and must match the entire address.
type The type of rule; see below.
arg1 An ed(1) style replacement string, with
standing for the text matched by the nth parenthesized subpattern.
arg2 Another ed(1) style replacement string.
In each of these fields the substring s is replaced by the login id of the sender and the substring l is replaced by the name of the
local machine.
When delivering a message, mail starts with the first rule and continues down the list until a pattern matches the destination address. It
then performs one of the following actions depending on the type of the rule:
>> Append the mail to the file indicated by expanding arg1, provided that file appears to be a valid mailbox.
| Pipe the mail through the command formed from concatenating the expanded arg1 and arg2.
alias Replace the address by the address(es) specified by expanding arg1 and recur.
translate
Replace the address by the address(es) output by the command formed by expanding arg1 and recur.
Mail expands the addresses recursively until each address has matched a >> or | rule or until the recursion depth indicates a rewriting
loop (currently 32).
If mail(1) is called with more than one address and several addresses match | rules and result in the same expanded arg1, the message is
delivered to all those addresses by a single command, composed by concatenating the common expanded arg1 and each expanded arg2. This mail
bundling is performed to reduce the number of times the same message is transmitted across a network. For example, with the following re-
write rule
([^!]*.att.com)!(.*) | "/mail/lib/qmail 's' 'net!1'" "'2'"
if user presotto runs the command
% mail research.att.com!ken research.att.com!rob
there will follow only one execution of the command
/mail/lib/qmail presotto net!research.att.com ken rob
Here /mail/lib/qmail is an rc(1) script used for locally queuing remote mail.
In the event of an error, the disposition of the mail depends on the name of the command executing the rewrite. If the command is called
mail and is run by $user, the command will print an error and deposit the message in /mail/box/$user/dead.letter. If the command is called
rmail, usually because it was invoked to deliver mail arriving over the network, the message will be returned to the sender. The returned
message will appear to have been sent by user postmaster.
SEE ALSO mail(1)REWRITE(6)