Guestfish feature: remote control of guestfish over a pipe.
authorRichard Jones <rjones@trick.home.annexia.org>
Mon, 13 Jul 2009 12:06:26 +0000 (13:06 +0100)
committerRichard Jones <rjones@trick.home.annexia.org>
Tue, 14 Jul 2009 13:08:31 +0000 (14:08 +0100)
commita86aa7d152ed996170714a3a4516eab58bf8b59d
treeb29a2081d1951b13c0da03d01973a0e8c507ba5b
parent5d6cc25900df4e13e4085f13d4f846cc9719ce61
Guestfish feature: remote control of guestfish over a pipe.

The use case is to have a long-running guestfish process in
a shell script, and thus to avoid the overhead of starting
guestfish each time.  Do:

 eval `guestfish --listen`

 guestfish --remote somecmd
 guestfish --remote someothercmd
 guestfish --remote exit

This patch also supports having multiple guestfish processes
at the same time.

The protocol is simple XDR messages over a Unix domain socket.
.gitignore
TODO
fish/Makefile.am
fish/fish.c
fish/fish.h
fish/rc.c [new file with mode: 0644]
fish/rc_protocol.x [new file with mode: 0644]
guestfish.pod
regressions/Makefile.am
regressions/test-remote.sh [new file with mode: 0755]