From "man mailx". Your second version may misunderstand what the "-r" switch is for.
Quote:
-r address Pass address to network delivery software. All
tilde commands are disabled.
Back to the first script.
I have yet to get mailx to send to multiple recipients without sending multiple emails. The default sendmail configuration cleverly adjusts the CC list to avoid mentioning the same email address twice.
Assuming sendmail is the default configuration.
File cc_list should contain no quote characters and a list of CC recipients one per line.
The mail address must be exactly the same in the CC list as the address we send to in mailx (case significant).
Now I am ablt to send mail with body,attachment cc and recepient mail address.
However if I am using -r option then cc is not working ....as u told that -r will disable ~
is there any way out...I want to send mail having :
mail body
attachhment
cc list
to list
sender mail id
---------- Post updated 07-17-10 at 08:48 AM ---------- Previous update was 07-16-10 at 03:10 PM ----------
Is there any way out...I want to send mail (HP UX mails)having the fdollowing options:
-s Subject
-r sender
~c cc list
uuencode
body
There is no rational reason to use the "-r" option in this context. It is not a parameter for the email addresses of a list of recipients. Hope this is is clear.
I used to use ls -l cut to detrmine file size, and google searches didn't come up with anything else but 'stat' which doesn't appear on HPUX.
I discovered the humble 'wc -c' which does this job very neatly, and thought I would share it. (7 Replies)
I'm sharing this in case anybody needs it. Modified from the original solaris pwage script. This modified hpux script will check /etc/password file on hpux trusted systems search /tcb and grep the required u_succhg field. Calculate days to expiry and notify users via email.
original solaris... (2 Replies)
Hi,
I am using mailx command to send mail.
But unable to use -c option to send mails by cc list.
eg.
..mailx -s "subject" -c "CCLIST" "TOLIST"
Its showing " illegal option -- c"
I am using HP UX.
Can anybody help me out.
Thanks in advance..! (3 Replies)
I am running HPUX and using WLM (workload manager). I want to write a script to fork CPUs to basically take CPUs from other servers to show that the communication is working and CPU licensing is working. Basically, I want to build a script that will use up CPU on a server. Any ideas? (2 Replies)
Im trying to use a shell script to send to a list of email addresses in a txt file. Here is what i have tried but it keeps sending to dead.letter...
Success.ksh contains...
mailx -s"Night Batch Success" 'cat /Scripts/email_addresses.txt' < /Scripts/email_body_message.txt
The email body... (1 Reply)
Hi,
I have a distribution list called /nisserver/sysadmin/user-alias-files/all_users. The contents of the file have the userid/usernames of the techs in my company.
These userid/usernames in the file do not have the @abc.com appended to them. After I type the newaliases command the results... (4 Replies)
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)
Hi, does anyone know how to find files who have the last access time bigger than 5 min ago, in linux i use: find ./ -amin +5 -type f -maxdepth 1 -name "*.*"
but in hp-ux the find command doesn't have the -amin option.... (2 Replies)
I'm trying recall how to set up a script to have mailx read a mailing list of people to recieve a message.
I had set up the script to have every name inside but the list could grow and/or change.
can any one help?
I'm using HPUX 11 on a rp7410. (6 Replies)
I have a basic question - how do I create and then use a mail list to be able to send a mailx email to multiple recipients.
I assume I create a test file using vi, containing the email addresses - but what is the format - are the addresses separated by ";", or by spaces, ....???
Is there a... (1 Reply)