in reply to automating linux commands in perl

system() has a return code. You should always test it after a command.

--Bob Niederman, http://bob-n.com

All code given here is UNTESTED unless otherwise stated.