1 #!/usr/local/bin/perl -s
3 use lib qw(../blib/lib blib/lib);
5 $ENV{PATH} .= ':blib/script:../blib/script:demo:.';
6 my $xterm = Stem::ConfigData->config('xterm_path');
7 my $telnet = Stem::ConfigData->config('telnet_path');
8 my $conf_path='conf:../conf';
13 $xskip = ( $^O eq 'solaris' ) ? 600 : 500 ;
18 $SIG{ 'INT' } = \&cleanup ;
23 $prompt = '-prompt "Stem: "' ;
24 $echo = 'console_echo=1';
25 $prompt2 = '-prompt "Chat: "' ;
28 foreach $cmd ( split /\n/, <<EOT ) {
29 xterm -T Stem -n Stem -geometry 80x40+XSKIP+0 -e $ssfe $prompt run_stem conf_path=$conf_path $echo inetd
30 xterm -T A -n A -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6666
31 xterm -T B -n B -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6667
32 xterm -T C -n C -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6666
33 xterm -T D -n D -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6667
36 $cmd =~ s/XSKIP/$xskip/ ;
38 $cmd =~ s/LINE/$line_cnt/ ;
39 $cmd =~ s/OFF/$base_off/ and $base_off += $offset ;
44 sleep 4 unless $cmd =~ /localhost/ ;
68 if ( $pid = fork() ) {
70 push @children, $pid ;