I'm trying get screen capture through a SSH connection. In this SSH connection, I'm using the root user.
I found that after executing this command:
screencapture -t jpg -S /test.jpg
the jpg file I got is all black. If I do this in the normal way (not through SSH), then I can get the screen capture successfully.
What could be causing this?