App::screenorama - Application output to websocket stream
This program allow you to pipe STDOUT and STDERR from a program over a websocket.
The data transmitted over the websocket connection is JSON in each frame:
Comes after each time the program emit data. NOTE: There's no guaranty that it will be emitted on newline.
The exit value of the application. The websocket will be closed after you see this.
If something goes wrong with the application or other operating system errors.
# let others connect to the running program $ screenorama daemon --listen http://*:5000 -- 'while sleep 1; do echo "hey!"; done' # pipe the output on incoming request $ screenorama daemon -- ls -l # Set parameters from config file $ MOJO_CONFIG=/path/to/config.pl screenorama daemon
Supported config/environment variables:
Default value: "pty".
The application to run.
The arguments given to "program".
Set this to true if the server should just run one application, shared between every connection. The default is false, meaning a new instance of "program" will be started on each request.
Set this to true if the "program" should accept commands from STDIN.
Connect a browser to http://localhost:5000 or ws://localhost:5000 to see the output.
Jan Henning Thorsen -