1 #!/usr/local/bin/perl -s
9 use File::Basename qw( basename );
10 $ENV{PATH} .= ':' . basename( $0 ) . ':.';
11 for my $prog qw( run_stem xterm ) {
12 die "Can't find $prog in PATH\n" if
13 system( "which $prog >/dev/null 2>&1" ) != 0;
17 $SIG{ 'INT' } = \&cleanup ;
21 my $ssfe = $s ? 'ssfe -prompt Stem:' : '' ;
22 my $echo = $s ? 'console_echo=1' : '' ;
25 xterm -T Hello -n Hello -geometry 80x40+0+0 -e $ssfe run_stem $echo hello
30 my @cmd = split ' ', $cmd ;
56 if ( my $pid = fork() ) {
58 push @children, $pid ;