my $child_pid = fork(); if ( ! defined( $child_pid )) { warn "fork failed\n"; } elsif ( $child_pid == 0 ) { # true for the child process exec( $cmd, @args ); } # the parent gets here when the fork succeeds...