Skip to content

Instantly share code, notes, and snippets.

@jonjensen
Created July 22, 2010 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonjensen/485595 to your computer and use it in GitHub Desktop.
Save jonjensen/485595 to your computer and use it in GitHub Desktop.
Script to watch Linux kernel entropy level
#!/usr/bin/perl
use strict;
use warnings;
use Time::HiRes 'usleep';
while (1) {
open my $in, '<', '/proc/sys/kernel/random/entropy_avail' or die;
print <$in>;
close $in;
usleep 100_000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment