--=-=-=
Content-Transfer-Encoding: quoted-printable
rif <[EMAIL PROTECTED]> writes:
> I'm still not having any luck with this. I tried the following:
>
> * (defparameter *e* (extensions:run-program "/home/rif/Software/R/bin/R" =
'("--no-save")=20
> :pty t :wait nil :input t :outp=
ut :stream :error :output))
> *E*
> * (write-line "a<-1:20" (extensions:process-pty *e*))
> "a<-1:20"
> * (write-line "save.image('/home/rif/Tmp/saved-R-file')" (extensions:proc=
ess-pty *e*))
> "save.image('/home/rif/Tmp/saved-R-file')"
> * *e*
> #<process 11742 :RUNNING>
> *=20
>
> According to your suggestion, I would expect the file
> /home/rif/Tmp/saved-R-file to exist after executing this sequence, but
> it does not. In general, I have zero evidence that I'm successfully
> communicating with the R process.
Try (force-output (extensions:process-pty *e*))? I don't know what
the default buffering mode is.
Failing that, try attaching strace to each process and see what it's
actually sending/receiving
=2Ddan
=2D-=20
http://www.cliki.net/ - Link farm for free CL-on-Unix resources=20
--=-=-=
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQA/bxxxHDK5ZnWQiRMRAoBNAJ0dnfU9BcGgLL+0U2y2rkSUEeZSsQCfS14i
EsDD36h/kgPlarYjnAFGy38=
=W6L1
-----END PGP SIGNATURE-----
--=-=-=--