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 <uldericofi...@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

Reply via email to