1 #!/usr/local/bin/perl -s
6 $xskip = ( $^O eq 'solaris' ) ? 600 : 500 ;
10 print "INETD: $ENV{PATH}\n" ;
12 $SIG{ 'INT' } = \&cleanup ;
17 $prompt = '-prompt Stem:' ;
18 $echo = 'console_echo=1'
19 # $prompt2 = '-prompt Chat:' ;
22 foreach $cmd ( split /\n/, <<EOT ) {
23 xterm -T Stem -n Stem -geometry 80x40+XSKIP+0 -e $ssfe $prompt run_stem $echo inetd
24 xterm -T A -n A -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6666
25 xterm -T B -n B -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6667
26 xterm -T C -n C -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6666
27 xterm -T D -n D -geometry 80xLINE+0+OFF -e $ssfe $prompt2 telnet localhost 6667
30 $cmd =~ s/XSKIP/$xskip/ ;
32 $cmd =~ s/LINE/$line_cnt/ ;
33 $cmd =~ s/OFF/$base_off/ and $base_off += $offset ;
37 @cmd = split ' ', $cmd ;
42 sleep 4 unless $cmd =~ /localhost/ ;
68 if ( $pid = fork() ) {
70 push @children, $pid ;