test.pl 338 B

123456789101112131415161718192021
  1. #!/usr/bin/perl
  2. require ESL;
  3. use Data::Dumper;
  4. my $fd = fileno(STDIN);
  5. my $con = new ESL::ESLconnection($fd);
  6. my $info = $con->getInfo();
  7. select STDERR;
  8. print $info->serialize();
  9. my $uuid = $info->getHeader("unique-id");
  10. $con->execute("answer", "", $uuid);
  11. $con->execute("playback", "/ram/swimp.raw", $uuid);
  12. $con->disconnect();