Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

executing a string in command line shell buffer (for remote connection)

0 views
Skip to first unread message

david.schruth

unread,
Sep 4, 2009, 1:29:19 PM9/4/09
to

Hello,

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

Vassil Nikolov

unread,
Oct 10, 2009, 12:31:38 AM10/10/09
to

On Fri, 4 Sep 2009 10:29:19 -0700 (PDT), "david.schruth" <dsch...@gmail.com> said:
> ...

> (funcall 'shell) ; this is fine

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?"

0 new messages