#!/usr/bin/perl
#
# MWR 4/23/2011

$debug = 1;

$cmd = "./sbf spacing=10 binning=1 > sbf_10_1.out ";
exec_cmd($cmd);
$cmd = "./sbf spacing=10 binning=10 > sbf_10_10.out ";
exec_cmd($cmd);
$cmd = "./sbf spacing=10 binning=100 > sbf_10_100.out ";
exec_cmd($cmd);
$cmd = "./sbf spacing=10 binning=1000 > sbf_10_1000.out ";
exec_cmd($cmd);
$cmd = "./sbf spacing=10 binning=10000 > sbf_10_10000.out ";
exec_cmd($cmd);




exit 0;



##############################################################################
# PROCEDURE: exec_cmd
#
# DESCRIPTION: Execute the given shell command line.  If the $debug flag
#              is set, we print to stdout the command line, and
#              also print out the result string.
#
# RETURNS:
#              the result of the command
#
#
sub exec_cmd {

  my($cmd, $ret);

  $cmd = $_[0];

  if ($debug > 0) {
    printf "cmd is ..$cmd.. \n";
  }
  $ret = `$cmd`;
  if ($debug > 0) {
    printf "ret is ..$ret.. \n";
  }

  return($ret);
}


