I'm trying to have R and emacs speak statistics (ESS) load
automatically in a remote ssh terminal via xemacs on startup (using
some lisp inside my init.el) . I've figured out how to do xemacs
function calls (to open the local shell and to use ESS remotely) but I
can't seem to figure out how to execute the command line calls to both
connect the server and run R.
-------------------------------------------------
(funcall 'shell) ; this is fine
; somehow run "ssh me@myserver"
; somehow run "R"
(funcall 'ess-remote) ;this is fine
-------------------------------------------------
Even if there is a way to copy some hardcoded text from my init.el
file into the buffer so I could just press <enter> after wards would
be helpful. (I couldn't figure out how to use append-to-buffer or
copy-to-buffer)
Any help would be greatly appreciated.
Dave
By the way, `funcall' is redundant here, just ``(shell)'' is enough.
> ; somehow run "ssh me@myserver"
(insert "ssh me@myserver")
(comint-send-input)
or do I misunderstand what you want?
---Vassil.
--
"Even when the muse is posting on Usenet, Alexander Sergeevich?"