in reply to Forking seperate processes?

See fork. If you need to run a separate program in this separate process, you can also look at exec. If you want to fork an external program and have a pipe to either its standard input or output, then open can take care of this for you (see perlopentut for a tutorial on that).

Replies are listed 'Best First'.
Re^2: Forking seperate processes?
by halfthelaw (Initiate) on Feb 19, 2006 at 04:57 UTC
    I don't need access to it's standard input or input, and exec won't work because I still want the main program to be able to continue doing other stuff.
      Then you probably want to use fork and exec together like this:
      # we're in the "main program"... my $child = fork(); die "fork failed: $!" unless ( defined( $child )); if ( $child == 0 ) { # the child process does this: exec( 'other_program', @args ); } # the parent now goes on to do whatever follows, while the child is ru +nning...