in reply to Re: exec creates two processes.. how to kill them?
in thread exec creates two processes.. how to kill them?

The slightly less crazy way to do it if you're bound and determined to use the shell to do redirection (which is indeed silly in this particular case) is to use the shell's exec command to tell it to exec the command you're asking it to run in place of itself (well, that perl is indirectly asking it to run on your behalf because you used the single argument form of exec with a string containing shell metacharacters).

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re^2: exec creates two processes.. how to kill them?