"system()" system call

Maarten Litmaath maart at cs.vu.nl
Thu Aug 24 05:36:59 AEST 1989


a20 at 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 at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list