getsymonitem.pl 349 B

1234567891011121314
  1. #!/usr/bin/perl
  2. #
  3. # Example program of how to use SymuxClient
  4. #
  5. use SymuxClient;
  6. die "Usage: $0 <symux host> <symux port> <measured host> <stream> <item>
  7. Example: $0 127.0.0.1 2100 127.0.0.1 'cpu(0)' user\n" if ($#ARGV < 4);
  8. my $sc = new SymuxClient( host => $ARGV[0],
  9. port => $ARGV[1]);
  10. print $sc->getitem( $ARGV[2], $ARGV[3], $ARGV[4] );