[9fans] Export local plumber to remote unix host?
  Home FAQ Contact Sign in
comp.os.plan9 only
 
Advanced search
POPULAR GROUPS

more...

comp.os.plan9 Profile…
 Up
[9fans] Export local plumber to remote unix host?         


Author: Jon Dugan
Date: Aug 27, 2008 01:05

Hello,

I read my email on a remote Unix machine which I access from a few terminals
via ssh. The terminals are also Unix hosts (usually OS X). This works great
for reading text. However, I frequently receive attachements. What I'd like
to be able to do is export at least my plumber over the ssh connection to the
remote host so I can display the attachments locally. This seems to be the
opposite of what import(1) does. I guess what I want is cpu(1) for
plan9port... or at least a limited version of it.

This seems like it should be doable, but I think I'm looking at it the wrong
way.

Any suggestions? (Unfortunately the Unix boxes and Word documents aren't
going away any time soon for me...)

Thanks,

Jon
4 Comments
Re: [9fans] Export local plumber to remote unix host?         


Author: sqweek
Date: Aug 27, 2008 09:01

On Wed, Aug 27, 2008 at 4:02 PM, Jon Dugan x1024.net> wrote:
> What I'd like
> to be able to do is export at least my plumber over the ssh connection to the
> remote host so I can display the attachments locally. This seems to be the
> opposite of what import(1) does. I guess what I want is cpu(1) for
> plan9port... or at least a limited version of it.
>
> Any suggestions? (Unfortunately the Unix boxes and Word documents aren't
> going away any time soon for me...)

You have two problems here:
1) Accessing plan 9's plumber from unix
2) Accessing unix files (attachments) from plan 9
Show full article (1.24Kb)
2 Comments
Re: [9fans] Export local plumber to remote unix host?         


Author: erik quanstrom
Date: Aug 27, 2008 09:14

> Of course, seems like it might be a bit simpler to run acme Mail.
'
i.e. imap.

- erik
no comments
Re: [9fans] Export local plumber to remote unix host?         


Author: sqweek
Date: Aug 27, 2008 09:56

On Wed, Aug 27, 2008 at 11:57 PM, sqweek gmail.com> wrote:
> On Wed, Aug 27, 2008 at 4:02 PM, Jon Dugan x1024.net> wrote:
>> What I'd like
>> to be able to do is export at least my plumber over the ssh connection to the
>> remote host so I can display the attachments locally.
>
> You have two problems here:
> 1) Accessing plan 9's plumber from unix
> 2) Accessing unix files (attachments) from plan 9

Whoops, I missed the note about terminals being unix, and thought
they were plan 9 terminals (funny assumption to make in 9fans, I
know). You'll have to take that as "imagine if you were running plan
9, then you could just do this" ;)
I thought Enrico did some work on serving across the network from
p9p, but I don't see anything in hg about it. That will probably be
your main sticking point, problem 2 doesn't change much.
-sqweek
no comments
Re: [9fans] Export local plumber to remote unix host?         


Author: a
Date: Aug 27, 2008 10:57

Let me make sure I understand the problem right: you have p9p
installed on two Unix boxes, A and B. Sitting at A, you ssh to B to
read your mail, and want to be able to plumb (or something
similar) attachments and have applications on A display them.
I presume you're also using non-p9p applications to view the
attachments.

If that's right, the problem is in two parts: having B feed
messages to the plumber on B, and having B find the files
referenced.

You can probably make the terminal mount the server; do so.
How doesn't matter: v9fs, fuse, nfs, afp, whatever. Just get it at,
say, /mnt/B. Make a plumbing rule that checks for files in
/mnt/B (after the normal check for files). You want
arg isfile /mnt/B/$1
or something very similar in that rule. Now when you plumb
/home/me/attachment1, after not finding that file locally
your plumber will look for /mnt/B/home/me/attachment1.
Have the 'plumb start' bit call open or OpenOffice or whatnot.
Show full article (1.89Kb)
no comments