As I mentioned ... somewhere else, I think, I want to build a mode that lets me run shell commands (on local or remote systems) directly from the listener window. I've wondered a couple times if this isn't a solution in search of a problem, but decided to ignore that for a while. :) Basically a) I want to try to do all my system interaction from within LW, and b) LW's Shell mode leaves a lot to be desired. For example, it doesn't do any terminal emulation. And I think this would be cool. So I've got the beginnings of a proof-of-concept going.
LW has this nifty command that lets you define top-level commands in the listener, so now I have
:server "server"
that logs into the given server and starts a "remote agent", that listens for commands, runs them, and pipes their output back to the listener, and
:c "command"
that sends a command to said agent, and reads and prints the response.
The :server command assumes that you have your ssh keys set up to not need a password.
tags: lisp shell mode
links: digg this del.icio.us technorati reddit