[R] multiline system call
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Dec 23 08:26:36 CET 2006
On Sat, 23 Dec 2006, Nicolas Mazziotta wrote:
> Le vendredi 22 décembre 2006 23:31, Charles C. Berry a écrit :
>> Perhaps a workaround is to pipe the input into sendmail (I recall sendmail
>> accepts input from sdtin) from 'echo'
>
> This works fine this way. Thanks a lot.
>
> (but note that my 2.4.0 linux binary does not accept the "input=xyz" as an
> argument of the system() function.)
Nor should it, but you failed to tell us what your OS was, and it matters
in this query (as in many others) which is why the posting guide asked
you to supply such information.
system() differs fundamentally by OS: it uses a shell on Unix-alikes but
not on Windows.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list