Skip to content

Commit

Permalink
Added stdout capture.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Jul 11, 2023
1 parent eea644d commit e6e310c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
run: which gnuplot
- name: gnuplot Version
run: gnuplot --version
- name: Whoami
run: whoami
- name: Set Perms
run: _build/examples/lib/erlexec/priv/*/exec-port --whoami
- name: Run One
run: rebar3 as examples lfe run -- 3d-heatmap true
- name: Run All
Expand Down
4 changes: 4 additions & 0 deletions src/plottah-svr.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@

(defun handle_info
;; Output from gnuplot
((`#(stdout ,_pid ,msg) state)
(io:format "~s~n" (list (string:substr (binary_to_list msg) 1 1000)))
`#(noreply ,state))
;; Output from gnuplot
((`#(stderr ,_pid ,msg) state)
(io:format "~s~n" (list (string:substr (binary_to_list msg) 1 1000)))
`#(noreply ,state))
Expand Down

0 comments on commit e6e310c

Please sign in to comment.