[DGD]External commands
Chris Meshkin
meshkin at earthcorp.com
Mon Apr 2 13:44:20 CEST 2001
From: "Matthew Jenkins" <matt at esb.co.uk>
> On Sat, 31 Mar 2001, Erwin Harte wrote:
> > On Sat, Mar 31, 2001 at 04:47:22PM +0100, Matthew Jenkins wrote:
> > > On Sat, 31 Mar 2001, Erwin Harte wrote:
> > [...]
> > "sendmail -bs -Ffoo | rm -rf / <tmail >tmail.out"
> >
> > How do you think system() is going to interpret that?
> >
Assuming you are on a unix system, wouldn't it be much simpler and safer to
open a socket to the SMTP port on localhost and simply send the appropriate
headers and data yourself?
Just a thought, rampant system() calls are scarier than charging orcs...
-Chris.
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list