[boulder.pm] file handle and pipe
Luke Palmer
fibonaci at babylonia.flatirons.org
Sat Jun 29 01:20:06 CDT 2002
On Sat, 29 Jun 2002, j davis wrote:
>
> syntax was just a little off
>
> open(MAIL, "|/usr/sbin/sendmail jd\@taproot.bz");
The parentheses are all you changed? This should not make a difference. I
ran a test on it and it does the exact same thing. In fact, Deparse
deparses to it without parentheses....
What version are you running?
Mind attaching me the source so I can have a look at this oddity. If
nothing else, you've found a bug that I can patch :)
Luke
> 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 worlds largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
More information about the Boulder-pm
mailing list