mirror of
https://github.com/imapsync/imapsync.git
synced 2025-08-05 16:28:04 +02:00
1.637
This commit is contained in:
parent
4a536871fe
commit
e2bfc931f4
206 changed files with 7348 additions and 7982 deletions
21
W/learn/ipc_open2
Executable file
21
W/learn/ipc_open2
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/perl -w
|
||||
|
||||
|
||||
|
||||
use strict ;
|
||||
use IO::Handle ;
|
||||
use IPC::Open2 ;
|
||||
|
||||
my( $chld_out, $chld_in ) = ( IO::Handle->new, IO::Handle->new ) ;
|
||||
my $pid = open2( $chld_out, $chld_in, 'cat -n' ) ;
|
||||
print $chld_in "LALALA\n" x 50000 ;
|
||||
print $chld_in "LALALA\n" ;
|
||||
print $chld_in "LALALA\n" ;
|
||||
|
||||
$chld_in->close ;
|
||||
my @out = <$chld_out> ;
|
||||
|
||||
waitpid( $pid, 0 );
|
||||
my $child_exit_status = $? >> 8;
|
||||
|
||||
print @out ;
|
17
W/learn/pipemess
Executable file
17
W/learn/pipemess
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/perl -w
|
||||
|
||||
# $Id: $
|
||||
|
||||
use strict ;
|
||||
|
||||
|
||||
open( READCMD, "cat -n /etc/passwd |" ) ;
|
||||
|
||||
my @out = <READCMD> ;
|
||||
|
||||
close( READCMD ) ;
|
||||
|
||||
print @out ;
|
||||
|
||||
exit ;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue