print "# Command file is located at: $myAbsPathToFile\n" if (-e $myAbsPathToFile); system("ls -l $myAbsPathToFile"); if (-s $cmd_path) {# $myAbsPathToFile) { print "Good to go"; } else { print "Failed: $!"; }