tags:

views:

91

answers:

1

I need to press a ceratin Key after setting up a server connection via xtightvncviewer in order to make an automated screenshot. Can i pass it with the startupscript?

~/VNC# xtightvncviewer myserver.dyndns.org -bgr233 -passwd /root/.vnc/passwd

A: 

You can open xtightvncviewer on a different display, then use scrot to take a screenshot.

There are of course methods to send keystrokes too, which is what you asked for, but it seems to be an uglier solution (if you ask me). For example check out these links:

Emil Vikström