-c option gives error in mail


 
Thread Tools Search this Thread
Operating Systems HP-UX -c option gives error in mail
# 1  
Old 02-17-2008
-c option gives error in mail

Hi,
I am getting illegal option error while using -c to CC in mail.

command used:

mailx -s "Report" -c xyz@abc.com < /tmp/report
Machine: HP UX.

Please help me out.
Looking you forward.

Thanks in Advance.
Jagadeesh.
# 2  
Old 02-18-2008
Do you mean tilde c? (~c)

Read the man page for mailx.... there is no -c option.
# 3  
Old 02-19-2008
Hey thanks,
i did not mean tilde.

then how we can make CC in mailx ..
is there any sepearte actions for the same.?
# 4  
Old 02-19-2008
please look at the manual page of mail/mailx.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Missing argument for option: n Error

I am trying to execute the cli.sh script in another shell script passing arguments and getting the below error. Myscript.sh #!/bin/sh /home/runAJobCli/cli.sh runAJobCli -n $Taskname -t $Tasktype I am passing the below 2 arguments and it giving error ./Myscript.sh T_SAMPLE_TEST MTT... (11 Replies)
Discussion started by: Info_Geek
11 Replies

2. Shell Programming and Scripting

mail -r option

mail -r will display FIFO order. May i know on what basis... Say it depends on sender/initiative/recipient (0 Replies)
Discussion started by: help_scr_seeker
0 Replies

3. Shell Programming and Scripting

"From" option in mail command

hi, Please suggest me how to mention "from" option in mailx command? mailx -s "Info " ssa@org.com < file (2 Replies)
Discussion started by: sreelu
2 Replies

4. Shell Programming and Scripting

recently introduced to the newer option for find...does an older option exist?

To find all the files in your home directory that have been edited in some way since the last tar file, use this command: find . -newer backup.tar.gz Is anyone familiar with an older solution? looking to identify files older then 15mins across several directories. thanks, manny (2 Replies)
Discussion started by: mr_manny
2 Replies

5. Shell Programming and Scripting

getopts fails to error on option w/o dash

I have a script with several options and during testing I found that the \? option does not handle options without dashes as I would expect. Then I run the script with any option that does not include a dash, it runs the script when I would expect \? to catch it and error. I've tried this with... (2 Replies)
Discussion started by: HexKnot
2 Replies

6. Shell Programming and Scripting

empty option output error

I have a script (multirun.sh) which launches the program bsim_em.x or bsim_es.x depending on the value entered from the screen: > multirun.sh 1 (executes bsim_em.x) > multirun.sh 2 (executes bsim_es.x) which, simplifying, I do with the following lines in the multirun.sh script: if ... (3 Replies)
Discussion started by: josegr
3 Replies

7. Shell Programming and Scripting

Unix mail with bcc option

Hello Everyone, I'm using UNIX 5.3, I'm using command line mailx or mail command to send emails to multiple email addresses and i need to include bcc (background corbon copy). Some Manuals says i can use -b flag to send to bcc but my unix does not recognize the flag "-b". And some manuals says... (1 Reply)
Discussion started by: aravindbachu
1 Replies

8. UNIX for Dummies Questions & Answers

Urgent -Please help me 'mail' option not working

Hi , I have already posted a post regarding this, but i didn't get my problem solve, so some body help me as it was urgent for me, my mail option is not working, when i send a mail, it is strucking in /var/spool/mqueue folder. and i am getting struck there itself, i see below two files are... (1 Reply)
Discussion started by: mars_girish9
1 Replies

9. Shell Programming and Scripting

option followed by : taking next option if argument missing with getopts

Hi all, I am parsing command line options using getopts. The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument. Below is the script: while getopts :hd:t:s:l:p:f: opt do case "$opt" in -h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies

10. Shell Programming and Scripting

mail option

hi all i have a file in unix which is of html format.wat should be the commnad to mail this to a specific mail id let's say abc.xyz@maildomain.com. (3 Replies)
Discussion started by: dr46014
3 Replies
Login or Register to Ask a Question