1

I want to capture the screenshot of a remote computer using paramiko. I am using the following code for that

import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('10.93.80.63', username='root', password='bohica')
ssh.exec_command("xwd -display :0 -silent -root > myscreen.xwd")
ssh.close()

The issue is that the file myscreen.xwd is created but the size is 0. Could you please let me know how I can capture the screenshot.

Vinay
  • 470
  • 1
  • 5
  • 18
  • Resolved this issue. The issue was that xwd was not executable and was not in the standard path. Resolved this issue by moving xwd to the standard path. – Vinay Nov 22 '12 at 10:34

1 Answers1

0

Resolved this issue. The issue was that xwd was not executable and was not in the standard path. Resolved this issue by moving xwd to the standard path.

Vinay
  • 470
  • 1
  • 5
  • 18