Link to home
Start Free TrialLog in
Avatar of Shannon Adams
Shannon Adams

asked on

mailx -r not an option in Linux (return address)

I am porting scripts from Solaris to RHEL 5.x that contains mailx commands.  It looks like Linux does not support the -r for return address in Linux?

On Solaris, this works:
mailx -r solaris@xyzcorp.com -s "solaris subject" sadams@xyzcorp.com

but on RHEL 5, it returns:
mailx: invalid option -- r


Is there an alternative for a return address in Linux using mailx?  I would like to avoid changing all these scripts.
ASKER CERTIFIED SOLUTION
Avatar of jar3817
jar3817

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial