mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-16 08:17:20 +00:00
Add forked Maatkit tools in bin/ and their tests in t/.
This commit is contained in:
13
t/pt-query-digest/samples/write-to-fifo.pl
Executable file
13
t/pt-query-digest/samples/write-to-fifo.pl
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env perl
|
||||
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
|
||||
my ($fifo, $t) = @ARGV;
|
||||
|
||||
open my $fh, '>', $fifo or die $OS_ERROR;
|
||||
print $fh "I'm a little teapot short and stout...\n";
|
||||
sleep $t;
|
||||
|
||||
exit;
|
Reference in New Issue
Block a user