# in your threads use IPC::System::Simple my $exit_value = runx(EXIT_ANY, "some_command", @args);