Permalink
Browse files

Doc fixes - add rebar3 shell pointers.

  • Loading branch information...
1 parent 017a374 commit b922b2004f0f9f58a6ccf8fe71313190dee081c6 @archaelus committed Nov 10, 2015
Showing with 7 additions and 7 deletions.
  1. +7 −7 README.rst
View
@@ -17,21 +17,21 @@ Example Use
IRC Server
----------
-Run ``erl -name erlirc -env ERL_LIBS _build/default/lib`` and run the following commands in
-the erlang shell::
+Run ``erl -name server -env ERL_LIBS _build/default/lib`` (or ``rebar3
+shell``) and run the following commands in the erlang shell::
- (erlirc@bete.ran)1> irc_app:start().
+ (server@bete.ran)1> irc_app:start().
<SASL reports snipped>
- (erlirc@bete.ran)2> {ok, Server} = irc_sup:start_server("localnet","localhost").
+ (server@bete.ran)2> {ok, Server} = irc_sup:start_server("localnet","localhost").
<SASL reports snipped>
{ok,<0.54.0>}
- (erlirc@bete.ran)3> irc_server:listen(Server, 16667).
+ (server@bete.ran)3> irc_server:listen(Server, 16667).
{ok,<0.56.0>}
Then from another bash console, telnet to the new server and send it
IRC commands::
- telnet localhost 16667
+ $ telnet localhost 16667
NICK test
USER test test localhost :Test User
JOIN :#test
@@ -42,7 +42,7 @@ IRC Client
Run ``erl -name client -env ERL_LIBS _build/default/lib`` and run the following commands in
the erlang shell::
- (erlirc@bete.ran)1> {ok, C} = irc_client_fsm:start_link("erlirc","localhost", 16667).
+ (client@bete.ran)1> {ok, C} = irc_client_fsm:start_link("erlirc","localhost", 16667).
{ok,<0.61.0>}
=INFO REPORT==== 7-Nov-2008::17:54:26 ===
(<0.61.0> irc_client_fsm:149) :localhost 001 erlirc :Welcome to the Internet Relay Network erlirc!erlirc@127.0.0.1

0 comments on commit b922b20

Please sign in to comment.