Thanks... That's going to work... But what I don't understand is that why
spamc doesn't take the -p (or any other run time option) with execl--
execl("spamc", "-p", "12345",NULL). Is this because I send the input file
via stdin, not '<', and spamc looks for '<' explicitly?
Also, if I link my code with modified spamc code, how is this going to
work with upgrading to higher version? Do I need to touch code again with
upgrade? -Danny


On Tue, 24 Feb 2004 12:23:58 +1300 (NZDT), "Sidney Markowitz"
<[EMAIL PROTECTED]> said:
> Danny Chen said:
> > Hi, I need to invoke spamc in my C program...
> > To avoid [...] two additional shells
> 
> Use the source... spamc source and makefile are not that big. Just turn
> the main() into a subroutine that you call from your program, change any
> calls to exit into returns, rip out the processing of the command line
> options, and add the right stuff from the spamc makefile into your own
> makefile.
> 
>  -- sidney
> 
> 
> 

-- 
http://www.fastmail.fm - A no graphics, no pop-ups email service

Reply via email to