Guest User

Untitled

a guest
Jun 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. # $rSelectInfoRef = (the connection infomation from oracle)
  2. $host = $rSelectInfoRef->[0][2];
  3. $user = $rSelectInfoRef->[0][3];
  4. $password = $rSelectInfoRef->[0][4];
  5.  
  6. print "[DEBUG] $host|$user|$password|n";
  7.  
  8. my $sftp;
  9.  
  10. eval {
  11. $sftp = Net::SFTP->new($host, user=>$user, password=>$password);
  12. };
  13. if( $@ ) {
  14. print "[ERROR] $@";
  15. exit -1;
  16. }
  17.  
  18. #$host = $rSelectInfoRef->[0][2];
  19. #$user = $rSelectInfoRef->[0][3];
  20. #$password = $rSelectInfoRef->[0][4];
  21.  
  22. $host = "168.16.5.110";
  23. $user = "test";
  24. $password = "000000";
  25. print "[DEBUG] $host|$user|$password|n";
  26.  
  27. my $sftp;
  28.  
  29. eval {
  30. $sftp = Net::SFTP->new($host, user=>$user, password=>$password);
  31. };
  32. if( $@ ) {
  33. print "[ERROR] $@";
  34. exit -1;
  35. }
Add Comment
Please, Sign In to add comment