| 4 |
## $Id$ |
## $Id$ |
| 5 |
## ------------------------------------------------------------------------- |
## ------------------------------------------------------------------------- |
| 6 |
## $Log$ |
## $Log$ |
| 7 |
|
## Revision 1.5 2003/03/29 06:54:59 joko |
| 8 |
|
## + sub rap_boot |
| 9 |
|
## |
| 10 |
## Revision 1.4 2003/03/27 15:58:08 joko |
## Revision 1.4 2003/03/27 15:58:08 joko |
| 11 |
## enhancement: now can execute perl-programs via 'do' here |
## enhancement: now can execute perl-programs via 'do' here |
| 12 |
## |
## |
| 75 |
print $res, "\n" if $res; |
print $res, "\n" if $res; |
| 76 |
} else { |
} else { |
| 77 |
my $rap = Data::Rap->new( target => $argString ); |
my $rap = Data::Rap->new( target => $argString ); |
| 78 |
|
rap_boot(); |
| 79 |
$rap->start(); |
$rap->start(); |
| 80 |
#$rap->stop(); |
#$rap->stop(); |
| 81 |
} |
} |
| 82 |
} |
} |
| 83 |
|
|
| 84 |
|
sub rap_boot { |
| 85 |
|
# check for another environment-variable: 'RAPBIN' |
| 86 |
|
# FIXME: what about 'topic.basedir'??? implement this here! |
| 87 |
|
# enhance infrastructure to have per-topic basedirs!!! |
| 88 |
|
chdir $ENV{RAPBIN} if $ENV{RAPBIN}; |
| 89 |
|
} |
| 90 |
|
|
| 91 |
my @args = @ARGV; |
my @args = @ARGV; |
| 92 |
@args = () if not @args; |
@args = () if not @args; |
| 93 |
main(join(' ', @args)); |
main(join(' ', @args)); |