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 $conf_path='conf:../conf';
13 $xskip = ( $^O eq 'solaris' ) ? 600 : 500 ;
17 my $tail_dir = 'tail' ;
19 $SIG{ 'INT' } = \&cleanup ;
24 $prompt = '-prompt "Stem: "' ;
25 $echo = 'console_echo=1'
28 -d $tail_dir or mkdir $tail_dir, 0722 or
29 die "can't create $tail_dir working directory" ;
31 foreach my $log ( qw( foo bar bar_status ) ) {
32 unlink "$tail_dir/$log.log" ;
36 foreach $cmd ( split /\n/, <<EOT ) {
37 xterm -T Archive -n Archive -geometry 80x35+0+0 -e $ssfe $prompt run_stem conf_path=$conf_path $echo archive
38 xterm -T Monitor -n Monitor -geometry 80x35+$xskip+0 -e $ssfe $prompt run_stem conf_path=$conf_path $echo monitor
39 xterm -T Tail -n Tail -geometry 80x20+275+420
44 chdir $tail_dir unless $cmd =~ /run_stem/ ;
71 if ( $pid = fork() ) {
73 push @children, $pid ;