Source: http://www.semicomplete.com/projects/xdotool/
#apt-get install xdotool
#Send a Ctrl+P to Google Earth -> “File -> Print”
WID=`xdotool search “Google Earth” | head -1`
xdotool windowactivate $WID
xdotool key ctrl+p
#Copy Google Earth current view image to clipboard
WID=`xdotool search “Google Earth” | head -1`
xdotool windowactivate $WID
xdotool key ctrl+alt+c
And so on….there are several other possibilities described in the mentioned page.