Skip to content

Instantly share code, notes, and snippets.

@gleber
Created February 28, 2012 09:00
Show Gist options
  • Save gleber/1931428 to your computer and use it in GitHub Desktop.
Save gleber/1931428 to your computer and use it in GitHub Desktop.
gleber@first:~/code/opensource$ git clone git@github.com:gleber/exat.git exat
Cloning into exat...
remote: Counting objects: 240, done.
remote: Compressing objects: 100% (148/148), done.
remote: Total 240 (delta 125), reused 202 (delta 87)
Receiving objects: 100% (240/240), 705.27 KiB | 172 KiB/s, done.
Resolving deltas: 100% (125/125), done.
gleber@first:~/code/opensource$ cd exat
gleber@first:~/code/opensource/exat$ make deps all
./rebar get-deps
==> exat (get-deps)
Pulling misultin from {git,"https://github.com/gleber/misultin.git","master"}
Cloning into misultin...
==> misultin (get-deps)
./rebar compile
==> misultin (compile)
Compiled src/misultin_websocket.erl
Compiled src/misultin_socket.erl
Compiled src/misultin_ws.erl
Compiled src/misultin_websocket_draft-hybi-10.erl
Compiled src/misultin_server.erl
Compiled src/misultin_websocket_draft-hybi-17.erl
Compiled src/misultin_websocket_draft-hixie-76.erl
Compiled src/misultin.erl
Compiled src/misultin_acceptors_sup.erl
Compiled src/misultin_req.erl
Compiled src/misultin_cookies.erl
Compiled src/misultin_websocket_draft-hybi-10_17.erl
Compiled src/misultin_utility.erl
Compiled src/misultin_acceptor.erl
Compiled src/misultin_sessions.erl
Compiled src/misultin_websocket_draft-hixie-68.erl
Compiled src/misultin_http.erl
==> exat (compile)
Compiled src/sync.erl
src/eresye_ontology.erl:281: Warning: variable 'Acc' shadowed in 'fun'
Compiled src/eresye_ontology.erl
src/mtp.erl:161: Warning: function display_params/1 is unused
Compiled src/mtp.erl
Compiled src/eresye_tree_list.erl
src/acl.erl:108: Warning: function islowercase/1 is unused
src/acl.erl:163: Warning: function erlang_to_erlang_sl_agent_identifier/1 is unused
src/acl.erl:164: Warning: record/2 obsolete
src/acl.erl:180: Warning: function erl_sl0_to_atom/1 is unused
src/acl.erl:184: Warning: function remove_nihils/2 is unused
src/acl.erl:193: Warning: function remove_nihils/1 is unused
src/acl.erl:202: Warning: record/2 obsolete
Compiled src/acl.erl
Compiled src/ams.erl
Compiled src/exat.erl
src/agent.erl:24: Warning: undefined callback function code_change/3 (behaviour 'gen_server')
src/agent.erl:24: Warning: undefined callback function handle_info/2 (behaviour 'gen_server')
src/agent.erl:204: Warning: record/2 obsolete
src/agent.erl:207: Warning: record/2 obsolete
src/agent.erl:215: Warning: record/2 obsolete
src/agent.erl:433: Warning: function do_forward/2 is unused
Compiled src/agent.erl
src/eresye.erl:26: Warning: undefined callback function handle_cast/2 (behaviour 'gen_server')
src/eresye.erl:26: Warning: undefined callback function handle_info/2 (behaviour 'gen_server')
Compiled src/eresye.erl
Compiled src/aclscan.erl
Compiled src/aclscanner.erl
src/match_lib.erl:30: Warning: function/1 obsolete
src/match_lib.erl:79: Warning: function match/2 is unused
src/match_lib.erl:93: Warning: function build_fun/1 is unused
src/match_lib.erl:101: Warning: function fun_from_term/1 is unused
Compiled src/match_lib.erl
src/eresye_ontology_resolver.erl:32: Warning: function iterate/3 is unused
Compiled src/eresye_ontology_resolver.erl
Compiled src/exat_sup.erl
Compiled src/mtp_utils.erl
Compiled src/fipa_semantics_simple.erl
Compiled src/media_type.erl
src/envelope.erl:63: Warning: record/2 obsolete
Compiled src/envelope.erl
Compiled src/exat_server.erl
Compiled src/object.erl
Compiled src/sl_parser.erl
Compiled src/semantics.erl
Compiled src/sl.erl
Compiled src/http_server.erl
Compiled src/eventmanager.erl
Compiled src/multisync.erl
src/logger.erl:24: Warning: undefined callback function handle_call/2 (behaviour 'gen_event')
src/logger.erl:24: Warning: undefined callback function handle_info/2 (behaviour 'gen_event')
Compiled src/logger.erl
Compiled src/ontology.erl
src/ontology_service.erl:24: Warning: undefined callback function handle_cast/2 (behaviour 'gen_server')
Compiled src/ontology_service.erl
src/eresye_agenda.erl:59: Warning: undefined callback function handle_info/2 (behaviour 'gen_server')
Compiled src/exat_app.erl
Compiled src/eresye_agenda.erl
src/simple_agent.erl:51: Warning: function behaviour_info/1 is unused
Compiled src/simple_agent.erl
src/fipa_ontology_sl_codec.erl:225: Warning: this clause cannot match because a previous clause at line 224 always matches
Compiled src/fipa_ontology_sl_codec.erl
./rebar compile
==> misultin (compile)
==> exat (compile)
gleber@first:~/code/opensource/exat$ cd examples/simple/
gleber@first:~/code/opensource/exat/examples/simple$ make
erlc -pa ../../ebin/ -I ../../include/ -I ../../src/ simple_pingagent.erl simple_pingeragent.erl
simple_pingagent.erl:3: Warning: behaviour simple_agent undefined
simple_pingagent.erl:37: Warning: variable 'Msg' is unused
simple_pingagent.erl:47: Warning: variable 'Call' is unused
simple_pingagent.erl:53: Warning: variable 'Msg' is unused
simple_pingeragent.erl:3: Warning: behaviour simple_agent undefined
simple_pingeragent.erl:34: Warning: variable 'Msg' is unused
simple_pingeragent.erl:45: Warning: variable 'Call' is unused
simple_pingeragent.erl:61: Warning: variable 'Resp' is unused
simple_pingeragent.erl:65: Warning: variable 'Msg' is unused
gleber@first:~/code/opensource/exat/examples/simple$ ./run_first.sh
Erlang R15B (erts-5.9) [source] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.35.0>},
{name,alarm_handler},
{mfargs,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.36.0>},
{name,overload},
{mfargs,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.34.0>},
{name,sasl_safe_sup},
{mfargs,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.37.0>},
{name,release_handler},
{mfargs,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
application: sasl
started_at: nonode@nohost
Eshell V5.9 (abort with ^G)
1>
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,inets_sup}
started: [{pid,<0.47.0>},
{name,ftp_sup},
{mfargs,{ftp_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,httpc_profile_sup}
started: [{pid,<0.50.0>},
{name,httpc_manager},
{mfargs,
{httpc_manager,start_link,
[default,only_session_cookies,inets]}},
{restart_type,permanent},
{shutdown,4000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,httpc_sup}
started: [{pid,<0.49.0>},
{name,httpc_profile_sup},
{mfargs,
{httpc_profile_sup,start_link,
[[{httpc,{default,only_session_cookies}}]]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,httpc_sup}
started: [{pid,<0.51.0>},
{name,httpc_handler_sup},
{mfargs,{httpc_handler_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,inets_sup}
started: [{pid,<0.48.0>},
{name,httpc_sup},
{mfargs,
{httpc_sup,start_link,
[[{httpc,{default,only_session_cookies}}]]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,inets_sup}
started: [{pid,<0.52.0>},
{name,httpd_sup},
{mfargs,{httpd_sup,start_link,[[]]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,inets_sup}
started: [{pid,<0.53.0>},
{name,tftp_sup},
{mfargs,{tftp_sup,start_link,[[]]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
application: inets
started_at: nonode@nohost
__ __ __ _______
\ \ / / / \ |__ __|
____ \ \ / / / /\ \ | |
/ __ \ \ \/ / | |__| | | |
| ____/ / /\ \ | __ | | |
| \____ / / \ \ | | | | | |
\____/ /_/ \_\ |_| |_| |_|
***** *****************
* The erlang eXperimental Agent Tool -- Release 1.3.0-EYE *
***********************************************************
eXAT, an erlang eXperimental Agent Tool
ERESYE, an ERlang Expert SYstem Engine
Copyright (C) 2003-07 Corrado Santoro (csanto@diit.unict.it)
Copyright (C) 2005-07 Francesca Gangemi (francesca@erlang-consulting.com)
['HTTP-MTP'] MTP Started at port 7778
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,inet_gethost_native_sup}
started: [{pid,<0.63.0>},{mfa,{inet_gethost_native,init,[[]]}}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.62.0>},
{name,inet_gethost_native_sup},
{mfargs,{inet_gethost_native,start_link,[]}},
{restart_type,temporary},
{shutdown,1000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,misultin}
started: [{pid,<0.65.0>},
{name,server},
{mfargs,{misultin_server,start_link,[{4096}]}},
{restart_type,permanent},
{shutdown,60000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,misultin}
started: [{pid,<0.66.0>},
{name,sessions},
{mfargs,
{misultin_sessions,start_link,[{<0.64.0>,600}]}},
{restart_type,permanent},
{shutdown,60000},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.68.0>},
{name,{acceptor,1}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.69.0>},
{name,{acceptor,2}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.70.0>},
{name,{acceptor,3}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
['ONTOLOGY'] Started
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.71.0>},
{name,{acceptor,4}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.72.0>},
{name,{acceptor,5}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
['AMS'] Staring AMS.
['ONTOLOGY'] Registering Codec fipa_ontology_sl_codec for ontology FIPA-Agent-Management
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.73.0>},
{name,{acceptor,6}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.74.0>},
{name,{acceptor,7}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.75.0>},
{name,{acceptor,8}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.76.0>},
{name,{acceptor,9}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {<0.67.0>,misultin_acceptors_sup}
started: [{pid,<0.77.0>},
{name,{acceptor,10}},
{mfargs,
{misultin_acceptor,start_link,
[<0.64.0>,#Port<0.1855>,7778,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,misultin}
started: [{pid,<0.67.0>},
{name,acceptors_sup},
{mfargs,
{misultin_acceptors_sup,start_link,
[<0.64.0>,7778,
[binary,
{packet,raw},
{ip,{0,0,0,0}},
{reuseaddr,true},
{active,false},
{backlog,128},
inet],
10,30000,http,
{custom_opts,4194304,2000,false,
#Fun<mtp.0.16770316>,true,undefined,true,
['draft-hybi-17','draft-hybi-10',
'draft-hixie-76'],
undefined,false,false,true,false}]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,exat_sup}
started: [{pid,<0.64.0>},
{name,exat_platform},
{mfargs,{exat_server,start_link,[7778]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,supervisor}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,exat_sup}
started: [{pid,<0.78.0>},
{name,mtp_sender_service},
{mfargs,
{gen_server,start_link,
[{local,mtp_sender},mtp,[],[]]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,exat_sup}
started: [{pid,<0.79.0>},
{name,ontology_service},
{mfargs,
{gen_server,start_link,
[{local,ontology_service},
ontology_service,[],[]]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=ERROR REPORT==== 28-Feb-2012::10:00:12 ===
Call to tuple fun {ams,extends}.
Tuple funs are deprecated and will be removed in R16. Use "fun M:F/A" instead, for example "fun ams:extends/0".
(This warning will only be shown the first time a tuple fun is called.)
simple_pingagent
['AMS'] Staring Applications: {simple_pingagent}
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
supervisor: {local,exat_sup}
started: [{pid,<0.84.0>},
{name,exat_ams},
{mfargs,{ams,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]
=PROGRESS REPORT==== 28-Feb-2012::10:00:12 ===
application: exat
started_at: nonode@nohost
1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment