Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.LNX.4.64.0612230723390.18209@gannet.stats.ox.ac.uk>
Date: 2006-12-23T07:26:36Z
From: Brian Ripley
Subject: multiline system call
In-Reply-To: <200612230712.09746.nicolas.mazziotta@swing.be>

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