【发布时间】:2013-02-23 18:33:50
【问题描述】:
我使用的是 OS X 10.6.5,偶尔通过 ssh 访问它。以这种方式访问它时,我需要能够使用屏幕捕获实用程序来拍摄屏幕图像。 screencapture 的手册页说要执行以下操作,但这似乎对我不起作用:
SECURITY CONSIDERATIONS
To capture screen content while logged in via ssh, you must launch
screencapture in the same mach bootstrap hierarchy as loginwindow:
PID=pid of loginwindow
sudo launchctl bsexec $PID screencapture [options]
我目前使用的命令是:
sudo launchctl bsexec 53 screencapture foo.png
结果是没有输出PNG,命令静默返回。你们中的任何人都可以帮我完成这项工作吗?谢谢!
【问题讨论】: