Skip to content
Prev 106513 / 398513 Next

multiline system call

Look at the help page for ?system, especially the  'input=' arg.

Maybe this sort of strategy will fly:
[1] "x" "y"
In your case, maybe

system('sh' input=c('sendmail -f xxx at swing.be -t yyy at swing.be','test','.')

or

system('sendmail -f xxx at swing.be -t yyy at swing.be', input='test')

will do it.
On Fri, 22 Dec 2006, Nicolas Mazziotta wrote:

            
Charles C. Berry                        (858) 534-2098
                                          Dept of Family/Preventive Medicine
E mailto:cberry at tajo.ucsd.edu	         UC San Diego
http://biostat.ucsd.edu/~cberry/         La Jolla, San Diego 92093-0717