In the OP case, where the final intend is to run an external command, the optimum solution would probably be to fork a new process and exec the command.

In reply to Re^4: forks for running multiple codes at same time by salva
in thread forks for running multiple codes at same time by adamquestion

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":