Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ssh.connect('127.0.0.1', username='jesse',
- password='lol')
- stdin, stdout, stderr = ssh.exec_command(
- "sudo dmesg")
- stdin.write('lol\n')
- stdin.flush()
- data = stdout.read.splitlines()
- for line in data:
- if line.split(':')[0] == 'AirPort':
- print line
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement