getsymonitem.pl 413 B

123456789101112131415
  1. #!/usr/bin/perl
  2. #
  3. # $Id: getsymonitem.pl,v 1.2 2003/12/20 16:30:44 dijkstra Exp $
  4. #
  5. # Example program of how to use SymuxClient
  6. use SymuxClient;
  7. die "Usage: $0 <symux host> <symux port> <measured host> <stream> <item>
  8. Example: $0 127.0.0.1 2100 127.0.0.1 'cpu(0)' user\n" if ($#ARGV < 4);
  9. my $sc = new SymuxClient( host => $ARGV[0],
  10. port => $ARGV[1]);
  11. print $sc->getitem( $ARGV[2], $ARGV[3], $ARGV[4] );