[boulder.pm] file handle and pipe

j davis davis_compz at hotmail.com
Fri Jun 28 23:21:01 CDT 2002


syntax was just a little off

open(MAIL, "|/usr/sbin/sendmail jd\@taproot.bz");
print MAIL "$in{content}";
close MAIL;

is what i needed....like i said im new.
can all command line based programs be piped into in this manner?

thanks
jd


>Hello,
>Im a newbie. I have a var. that holds the contents of a email. I am trying
>to send the email using sendmail like this....
>
>`/bin/echo $in{content} | sendmail jd\@taproot.bz`;
>
>doesnt work , friend suggested this.....
>
>open MAIL, "|/usr/bin/sendmail jd\@taproot.bz";
>print MAIL "$in{content}";
>close MAIL;
>
>cant seem to make this work either but i really like the idea of it.
>can i open a file handel and pipe info into a program like
>im trying above?
>
>thanks,
>jd
>jd at taproot.bz
>http://www.taproot.bz
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com


thanks,
jd

jd at taproot.bz
http://www.taproot.bz

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com




More information about the Boulder-pm mailing list