9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] something more simple than import(1) -B
@ 2007-04-05 21:45 Eric Van Hensbergen
  2007-04-05 22:35 ` Russ Cox
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Van Hensbergen @ 2007-04-05 21:45 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Probably a stupid question -- there seems like there should be a
simple way to take stdin/stdout and generate a srv file -- such that I
could aux/listen1 tcp!*!someport srvit -b somesrvname

import -B sorta does this, but it does too much, it shoves
authentication down my throat and also wants to mount it to some mount
point instead of giving me a nice srv file.  Is there some more simple
command I'm missing, or is this just something that needs to be
written?

Similarly, Inferno doesn't really seem to have the concept of an
import -B, which seems kinda of annoying.

         -eric


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] something more simple than import(1) -B
  2007-04-05 21:45 [9fans] something more simple than import(1) -B Eric Van Hensbergen
@ 2007-04-05 22:35 ` Russ Cox
  2007-04-05 22:38   ` Eric Van Hensbergen
  0 siblings, 1 reply; 3+ messages in thread
From: Russ Cox @ 2007-04-05 22:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 4/5/07, Eric Van Hensbergen <ericvh@gmail.com> wrote:
> Probably a stupid question -- there seems like there should be a
> simple way to take stdin/stdout and generate a srv file -- such that I
> could aux/listen1 tcp!*!someport srvit -b somesrvname

aux/listen1 tcp!*!someport rc -c 'echo -n 0 > /srv/somesrvname'

Russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] something more simple than import(1) -B
  2007-04-05 22:35 ` Russ Cox
@ 2007-04-05 22:38   ` Eric Van Hensbergen
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Van Hensbergen @ 2007-04-05 22:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 4/5/07, Russ Cox <rsc@swtch.com> wrote:
> On 4/5/07, Eric Van Hensbergen <ericvh@gmail.com> wrote:
> > Probably a stupid question -- there seems like there should be a
> > simple way to take stdin/stdout and generate a srv file -- such that I
> > could aux/listen1 tcp!*!someport srvit -b somesrvname
>
> aux/listen1 tcp!*!someport rc -c 'echo -n 0 > /srv/somesrvname'
>

Guess I was getting too hung up on stdin and stdout being different
fd's like a boofhead.  Thanks Russ.

        -eric


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-05 22:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-05 21:45 [9fans] something more simple than import(1) -B Eric Van Hensbergen
2007-04-05 22:35 ` Russ Cox
2007-04-05 22:38   ` Eric Van Hensbergen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).