Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: "system()" system call Keywords: Strange error Message-ID: <3045@solo1.cs.vu.nl> Date: 23 Aug 89 19:36:59 GMT References: <240@nikhefh.hep.nl> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 25 a20@nikhefh.hep.nl (Marten Terpstra) writes: \... \main() \{ \int count; \extern int system(); \ \count=system(" mail -s x25-errors terpstra < /tmp/x25_errors "); \ \} \---------------------------- \ \When I compile and run this (compiling without any problems) the \rather strange error message \Unknown command: "#################################################" \appears. $ strings -a `which mail` | grep 'Unknown command:' Unknown command: "%s" $ The standard input appears to contain an unknown in-band mail(1) command. -- "rot H - dD/dt = J, div D = rho, div B = 0, |Maarten Litmaath @ VU Amsterdam: rot E + dB/dt = 0" and there was light. |maart@cs.vu.nl, mcvax!botter!maart