#!/usr/bin/perl
#
#

$debug = 1;

$cmd = "~/old/bin/gifmerge ";
$cmd .= "  -500 ";
$cmd .= " test_rms_100_label.gif ";
$cmd .= " test_rms_50_label.gif ";
$cmd .= " test_rms_25_label.gif ";
$cmd .= " test_rms_10_label.gif ";
$cmd .= " test_rms_3_label.gif ";
$cmd .= " test_rms_0_label.gif ";
$cmd .= " > test_anim_label.gif ";

$ret = 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);
}


