vncsnapshot

Command-line utility for capturing VNC server screenshots

brewmacoslinux
Try with needOr install directly
Source

About

Command-line utility for taking VNC snapshots

Commands

vncsnapshot

Examples

Capture a snapshot from a VNC server and save as PNG$ vncsnapshot -quality 9 192.168.1.100:5900 screenshot.png
Take a snapshot with authentication password$ vncsnapshot -passwd mypassword 192.168.1.100:5900 output.jpg
Capture a specific region of the VNC display$ vncsnapshot -rect 0 0 800 600 192.168.1.100:5900 crop.png