Starting the System
Now we’re ready for prime time. Let’s launch our company. Off we go. We’ll see who wants to buy the first prime number!
Let’s start the system.
| $ erl -boot start_sasl -config elog3 |
| 1> sellaprime_supervisor:start_in_shell_for_testing(). |
| *** my_alarm_handler init:{xyz,{alarm_handler,[]}} |
| area_server starting |
| prime_server starting |
Now make a valid query.
| 2> area_server:area({square,10}). |
| 100 |
Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.