Operating System - HP-UX
1834504 Members
2429 Online
110068 Solutions
New Discussion

Sendmail - Command Line for "Subject" on HPUX 11.00

 
SOLVED
Go to solution
rmueller58
Valued Contributor

Sendmail - Command Line for "Subject" on HPUX 11.00

I have a script that sends log files to my email on Linux it contains the following:

mail -s "SUBJECT LINE" myname@email.tld < logname.log

Is there a way to define the subject line in an email from HP/UX sendmail ?
3 REPLIES 3
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Sendmail - Command Line for "Subject" on HPUX 11.00

Rex,

use mailx instead of the mail command.

# mailx -s "subject line" admin@xxx.com < file

Robert-Jan
rmueller58
Valued Contributor

Re: Sendmail - Command Line for "Subject" on HPUX 11.00

That did the trick.. Thanks Robert..
rmueller58
Valued Contributor

Re: Sendmail - Command Line for "Subject" on HPUX 11.00

Forgot about mailx. Kudos to Robert.