9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plumb(er) + Acme + MacOS X - don't work
@ 2015-05-25 22:40 C Cirello
  2015-05-25 23:03 ` C Cirello
  0 siblings, 1 reply; 4+ messages in thread
From: C Cirello @ 2015-05-25 22:40 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,


I cannot make the plumbing to work on acme.

I have create a plumbing file at ~/lib/plumbing with:
# isbn10 search through Amazon
type is text
data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])'
plumb start open 'http://www.amazon.com/s/?field-keywords='$1

Initially I realized that I forgot to start plumber. So I am starting
plumber manually, and loading the plumbing rules with
cat $HOME/lib/plumbing | 9p write plumb/rules

That gives me this:
 9p read plumb/rules
plan9=/usr/local/plan9

type is text
data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])'
plumb start open 'http://www.amazon.com/s/?field-keywords='$1


If I do, in the command line:
plumb 1234512345

it launches the browser perfectly, the same goes for plumb option in
9term. However in acme it does not work - I tried selecting before
middle-clicking, selecting before right-clicking, middle-click and
right-click. Nothing worked.

Does anyone has any idea of what might I be doing wrong? I am running
MacOS X Yosemite.


Regards,
Carlos



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

* Re: [9fans] Plumb(er) + Acme + MacOS X - don't work
  2015-05-25 22:40 [9fans] Plumb(er) + Acme + MacOS X - don't work C Cirello
@ 2015-05-25 23:03 ` C Cirello
  2015-05-26 13:15   ` erik quanstrom
  0 siblings, 1 reply; 4+ messages in thread
From: C Cirello @ 2015-05-25 23:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

It seems I solve my own problem by accident. In the end I am using this script:

#!/bin/bash
/usr/local/plan9/bin/plumber
cat /usr/local/plan9/plumb/fileaddr /usr/local/plan9/plumb/basic
$HOME/lib/plumbing | 9p write plumb/rules
export tabstop=8; /usr/local/plan9/bin/acme -a -l ~/acme.dump &


Is there any cleaner way to achieve what this script does?


        - CC


2015-05-26 0:40 GMT+02:00 C Cirello <uldericofilho@gmail.com>:
> Hello,
>
>
> I cannot make the plumbing to work on acme.
>
> I have create a plumbing file at ~/lib/plumbing with:
> # isbn10 search through Amazon
> type is text
> data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])'
> plumb start open 'http://www.amazon.com/s/?field-keywords='$1
>
> Initially I realized that I forgot to start plumber. So I am starting
> plumber manually, and loading the plumbing rules with
> cat $HOME/lib/plumbing | 9p write plumb/rules
>
> That gives me this:
>  9p read plumb/rules
> plan9=/usr/local/plan9
>
> type is text
> data matches '([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])'
> plumb start open 'http://www.amazon.com/s/?field-keywords='$1
>
>
> If I do, in the command line:
> plumb 1234512345
>
> it launches the browser perfectly, the same goes for plumb option in
> 9term. However in acme it does not work - I tried selecting before
> middle-clicking, selecting before right-clicking, middle-click and
> right-click. Nothing worked.
>
> Does anyone has any idea of what might I be doing wrong? I am running
> MacOS X Yosemite.
>
>
> Regards,
> Carlos



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

* Re: [9fans] Plumb(er) + Acme + MacOS X - don't work
  2015-05-25 23:03 ` C Cirello
@ 2015-05-26 13:15   ` erik quanstrom
  2015-05-26 14:02     ` C Cirello
  0 siblings, 1 reply; 4+ messages in thread
From: erik quanstrom @ 2015-05-26 13:15 UTC (permalink / raw)
  To: 9fans

On Mon May 25 16:05:22 PDT 2015, uldericofilho@gmail.com wrote:
> It seems I solve my own problem by accident. In the end I am using this script:
>
> #!/bin/bash
> /usr/local/plan9/bin/plumber
> cat /usr/local/plan9/plumb/fileaddr /usr/local/plan9/plumb/basic
> $HOME/lib/plumbing | 9p write plumb/rules
> export tabstop=8; /usr/local/plan9/bin/acme -a -l ~/acme.dump &

if you simply "include basic" as the last step of your $HOME/lib/plumbing,
you won't need the cat.

- erik



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

* Re: [9fans] Plumb(er) + Acme + MacOS X - don't work
  2015-05-26 13:15   ` erik quanstrom
@ 2015-05-26 14:02     ` C Cirello
  0 siblings, 0 replies; 4+ messages in thread
From: C Cirello @ 2015-05-26 14:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Thanks - it worked.
        - CC


2015-05-26 15:15 GMT+02:00 erik quanstrom <quanstro@quanstro.net>:
> On Mon May 25 16:05:22 PDT 2015, uldericofilho@gmail.com wrote:
>> It seems I solve my own problem by accident. In the end I am using this script:
>>
>> #!/bin/bash
>> /usr/local/plan9/bin/plumber
>> cat /usr/local/plan9/plumb/fileaddr /usr/local/plan9/plumb/basic
>> $HOME/lib/plumbing | 9p write plumb/rules
>> export tabstop=8; /usr/local/plan9/bin/acme -a -l ~/acme.dump &
>
> if you simply "include basic" as the last step of your $HOME/lib/plumbing,
> you won't need the cat.
>
> - erik
>



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

end of thread, other threads:[~2015-05-26 14:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-25 22:40 [9fans] Plumb(er) + Acme + MacOS X - don't work C Cirello
2015-05-25 23:03 ` C Cirello
2015-05-26 13:15   ` erik quanstrom
2015-05-26 14:02     ` C Cirello

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).