Guest User

Untitled

a guest
Dec 5th, 2017
379
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 2.37 KB | None | 0 0
  1. #!/usr/bin/perl                                                                                                                                                                                                  
  2.  
  3. #use Net::SSH::Perl;                                                                                                                                                                                            
  4. use IPC::Open2;
  5.  
  6. @args = @ARGV;
  7. $ARGV = NULL;
  8.  
  9. #$host = "99.17.206.150";                                                                                                                                                                                        
  10. #$user = "svnlogin";                                                                                                                                                                                            
  11. #$password = "metalninja";                                                                                                                                                                                      
  12.  
  13.  
  14. #$ssh = Net::SSH::Perl->new($host);                                                                                                                                                                              
  15. #$ssh->login($user, $password);                                                                                                                                                                                  
  16.  
  17. #print $ssh->cmd(ls);                                                                                                                                                                                            
  18. print "\n";
  19.  
  20. if($#args < 1) {
  21.     print "Please enter an operation and a string name, dummy\n";
  22. }
  23.  
  24. if($args[0] == "get") {
  25.     open2($cmd_out, $cmd_in, 'svn checkout svn+ssh://svnlogin@99.17.206.150/home/svnlogin/svn/ + $args[1]');
  26. #    system("svn checkout svn+ssh://svnlogin@99.17.206.150/home/svnlogin/svn/" + $args[1]);                                                                                                                      
  27. }
  28.  
  29. if(($args[0] == "put") && ($#args >= 2)) {
  30.     #command line thing on                                                                                                                                                                                      
  31. }
Add Comment
Please, Sign In to add comment