#!/usr/bin/perl

$OSTYPE=`uname -s`;
chomp $OSTYPE;
$librapath = $ENV{"LIBRA_PATH"};
if (!defined($librapath)) {
    die "LIBRA_PATH not defined, exiting now...\n";
    exit(-1);
}
$ENV{"LD_LIBRARY_PATH"} = "$librapath/libra/$OSTYPE/lib";

$binpath="$librapath/libra/$OSTYPE/bin";
if ($pid = fork()) {
} else {
    print "$binpath/ex_compnode 42424\n";
    exec "$binpath/ex_compnode 42424";
    exit(-1);
}

system("./sdr-bin");

