in reply to Reading from STDOUT after Redirecting it.
system("$cmd $ip >$file") and warn "Can not execute $cmd: $!\n"; [download]