in reply to my pipes

Well, um, you're code looks horrible with a lot of bug and won't compile.

I wonder why you want to use perl for this task. You don't really use the output or something. I'd use a shell script. For sh:

#!/bin/sh # # some variations for executing 3 commands $1 ; $2 ; $3 # commands get executed after one another $1 && $2 && $3 # commands get only executed if previous succeeds $1 & $2 & $3 & # commands get forked # well you get the point, man sh for more ...

- Good luck