4
%% Copyright Ericsson AB 1998-2010. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
23
%%-compile(export_all).
39
-export([test9_server/1]).
43
R1 = lists1:reverse("retep"),
44
R2 = ordsets1:list_to_set([b,c,a,2,4,1]),
45
R3 = lists1:reverse("nilo"),
49
R1 = spawn(lists1,reverse,["retep"]),
50
R2 = spawn(ordsets1,list_to_set,[[b,c,a,2,4,1]]),
51
R3 = spawn(lists1,reverse,["nilo"]),
57
Pid = spawn(?MODULE, test1,[]),
62
Pid = spawn(?MODULE, test1,[]),
78
spawn(lists1,reverse,["adolfiparisrorsirapifloda"]),
83
CurDirReturn = file:get_cwd(),
84
{ok, CurDir} = CurDirReturn,
85
DirListReturn = file:list_dir(CurDir),
86
{ok, DirList} = DirListReturn,
87
io:format("~w~n",[DirList]).
104
S1 = spawn(?MODULE, test9_server,[self()]),
105
S2 = spawn(?MODULE, test9_server,[bongo]),
106
S3 = spawn(?MODULE, test9_server,[42]),
108
test9_loop(S1,S2,S3).
110
test9_loop(S1,S2,S3) ->
114
test9_loop(S1,S2,S3);
117
test9_loop(S1,S2,S3);
125
io:format("started server: ~p~n",[Pid]),
128
test9_server1(Pid) ->
132
test9_server2(Pad) ->