I am using mailx command in shell script. When i put -c option for CC , i get error message as "Unknown flag: -c" . I checked manual of mailx command and found that ~c to be used but after using ~c also it is not working. My shell is Korn. Kindly let me know what i have to do .
i get error " Unknow flag : -c". Even when i execute at command prompt or through shell script it gives same error. I checked maillist.txt file no empty line.
# mailx -s "test" -c abc@xyz.com
The flags you gave are used only when sending mail.
Usage: mailx -eiIUdFntBNHvV~ -T FILE -u USER -h hops -r address
-s SUBJECT -f FILE users
I get this error when my command is incomplete. Try to send mail manually from the prompt.