commit | 91b3762a63d3269b3654100ac444675d2bd7f4a9 | [log] [tgz] |
---|---|---|
author | Ali Ghassemi <aghassemi@google.com> | Fri Apr 10 14:05:30 2015 -0700 |
committer | Ali Ghassemi <aghassemi@google.com> | Fri Apr 10 14:05:32 2015 -0700 |
tree | e9a4f4b5610e7bd5b8c32f51b8eb644fde5b5b91 | |
parent | 240b69d15e6eafc2f51cb57bdb0a7b426ba63fd4 [diff] |
pipe-to_browser: Fixing the Data Grid component and other random fixes. Currently remote plugins don't work: https://github.com/veyron/release-issues/issues/1858 also users can only redirect pipes to their own instances, for now we don't want to open p2b so everyone can pipe to everyone else. Change-Id: I6de81f605e9161695ff8716bd0f30aeed962373c
P2B allows one to pipe anything from shell console to the browser. Data being piped to the browser then is displayed in a graphical and formatted way by a “viewer” Viewers are pluggable pieces of code that know how to handle and display a stream of data.
For example one can do:
echo "Hi!" | p2b users/jane@google.com/chrome/p2b/jane/console
or
cat cat.jpg | p2b -binary users/jane@google.com/chrome/p2b/jane/image
where users/jane@google.com/chrome/p2b is the Object name where p2b service is running in the browser. The suffix console or image specifies what viewer should be used to display the data.
Please see the help page inside the P2B application for detailed tutorials.
To build make
To run make go/bin/p2b #Builds the p2b binary make start #Starts a web server at 8080
and then navigate to http://localhost:8080 and publish under a name such as ‘foo’ and run p2b rpc under vbash with commands such as
# run vbash $V23_ROOT/release/go/src/v.io/x/ref/cmd/vbash # run a sample p2b command echo "Hello World" | go/bin/p2b users/<email-address>/chrome/p2b/foo/console
To stop simply Ctrl-C the console that started it
To clean make clean