Guest User

Untitled

a guest
Jun 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from subprocess import Popen
  2.  
  3. cmd = ['/usr/bin/ssh', '-L', '27000:lm-sge:27000', '-f', 'server.edu', '-N']
  4. p = Popen(cmd)
  5. # ps ax | grep ssh
  6.  
  7. #27206 ?? Ss 0:00.00 /usr/bin/ssh -L 27000:lm-sge:27000 -f server.edu -N
  8. #27205 s013 Z+ 0:00.00 (ssh)
  9.  
  10. # Cannot p.kill() or p.terminate()
Add Comment
Please, Sign In to add comment