In perl, if you want to do a dump of a program, say SSH. You do the following
system ("SSH 192.168.1.102 1> /dev/null 2> /dev/null");
Basically 1> /dev/null means dump all the output of the program to /dev/null
and 2> /dev/null means dump all the error output to /dev/null
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment