in reply to how to run system commands

Besides all the good advices, this print `command`; might confuse you if you have buffered output. Check out $| = 1 to see the command's output straight away and read i.e. Screen Output Buffering.