unless (system('ssh', $host, 'test -s $file') == 0) { #### system('ssh', $host, "echo $product > $file"); #### system('ssh', $host, "if [ ! -s $file ]; then echo $product > $file; fi");