- my $prog = "$main::root/local/client.pl";
- $prog = "$main::root/perl/client.pl" if ! -e $prog;
-
- my $pid = fork();
- if (defined $pid) {
- if (!$pid) {
- # in child, unset warnings, disable debugging and general clean up from us
- $^W = 0;
- eval "{ package DB; sub DB {} }";
- $SIG{HUP} = 'IGNORE';
- alarm(0);
- DXChannel::closeall();
- $SIG{CHLD} = $SIG{TERM} = $SIG{INT} = $SIG{__WARN__} = 'DEFAULT';
- exec $prog, $call, 'connect';
- dbg('cron', "exec '$prog' failed $!");
+# is it remotely connected anywhere (ignoring SSIDS)?
+sub presentish
+{
+ my $call = uc shift;
+ my $c = Route::get($call);
+ unless ($c) {
+ for (1..15) {
+ $c = Route::get("$call-$_");
+ last if $c;