Hi, I need to invoke spamc in my C program... To avoid the system("spamc
< inputfile > outputfile") call which invokes two additional shells I am
trying to fork a child process and then call execl(). The problem is,
since execl() doesn't take the redirection I have to close stdin and
stdout first. Then I open the inputfile and outputfile which in turn get
the file descriptor of stdin and stdout. Then I run 
execl("spamc", NULL) which should take inputfile and the stdin and
outputfile as stdout. However I got an   error of 69. Any ideas? Thanks
in advance. -Danny

-- 
http://www.fastmail.fm - One of many happy users:
  http://www.fastmail.fm/docs/quotes.html

Reply via email to