Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $proc = spawn( 'file-not-found' } );
    $proc->stdin->print("x\n");
    $proc->wait_child;
    
  2. or download this
    main::(j:5):    my $proc = spawn( sub { print "hello\n" } );
      DB<1> n
    ...
    main::(j:7):    $proc->stdin->print("x\n");
      DB<1> n
    mark@mlt:~/src/sys-cmd$
    
  3. or download this
    main::(j:5):    my $proc = spawn( sub { print "hello\n" } );
      DB<1> n
    ...
    main::(j:7):    print {$proc->stdin} "x\n";
      DB<1> n
    mark@mlt:~/src/sys-cmd$
    
  4. or download this
    $ git clone -b unexpected-termination  git://github.com/mlawren/sys-cm
    +d
    $ cd sys-cmd
    $ ./unexpected-termination.pl
    Spawning process