in reply to does system() return a pid?

What ever you want do to do: perhaps IPC::Run or Capture::Tiny might be alternatives. See also IPC::System::Simple: Why isn't my exception caught?.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»