[SunHELP] mailx question one liners


Thu Oct 31 10:41:37 CST 2002


Two other methods:

Redirect from a file:

mailx -s "subject" address at domain.com < filename

Redirect from a "here" file:

mailx -s "subject" address at domain.com <<-EOF
content
content
content
EOF

Note the EOF marker needs to start in column 1.

-M

-----Original Message-----
From: Simon Jespersen [mailto:shj at pine.dk]
Sent: Thursday, October 31, 2002 3:52 AM
To: Sun solaris help list
Subject: [SunHELP] mailx question one liners


Hi
Yhis may be a stuppid question but i have been looking and testing for 60
minuttes now.

How can i send a message from a script without pipe the message into the
mailx program

This works fine

echo testthismail | mailx -s "testmail from e" shj at pine.dk
testthismail will bw the message of the mail.

Now i need to do the mailx from a perl script and i dont want to pipe the
message into the command, how can i do it another way.

Kind regards

Simon Jespersen
Project engineer
Pine Tree Systems A/S
Damhaven 5d
DK-7100 Vejle
Email: shj at pine.dk
Phone: +4575724477
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list