develooper Front page | perl.beginners | Postings from December 2002

getting rid of STDOUT sometimes...

chad kellerman
December 2, 2002 02:55
getting rid of STDOUT sometimes...
Message ID:
Hey guys,

 I got a script that uses Net::SCP.  When ever I use it in the script it
prints to stdout.

 I have other parts of the script where I use print statments to
describe what part of the script is being executed.

 Is there a way to suppress the Net::SCP stdout messages but keep my
normal prints.


my $scp = Net::SCP->new( { "host"=>$Ip, "user"=>$user } );
   $scp->put("$identity") or die $scpS->{errstr}; 
what gets printed to STDOUT is:
scp /home/bob/file.txt root@

I want to suppress that scp /home/bob stuff.

Nad keep all the print statements in the scri[pt..

Can anyone offer any suggestions??


chad kellerman <> Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About