Guest User

Untitled

a guest
Oct 27th, 2017
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.39 KB | None | 0 0
  1. #!/usr/bin/env escript
  2. %%! -name jenkins@127.0.0.1 -setcookie cvz verbose
  3.  
  4. main([Node]) ->
  5.     Self=net_adm:ping('jenkins@127.0.0.1'),
  6.     erlang:display(Self),
  7.     Response=net_adm:ping(list_to_atom(Node)),
  8.     erlang:display(Response),
  9.     erlang:display(application:which_applications()).
  10.  
  11.  
  12. response:
  13. pong
  14. pang
  15. [{stdlib,"ERTS  CXC 138 10","1.17.4"},{kernel,"ERTS  CXC 138 10","2.14.4"}]
Add Comment
Please, Sign In to add comment