新足迹

 找回密码
 注册

精华好帖回顾

· 争做地主记❤有水表了!吼吼!!☼更新p20❤ (2009-4-13) 北京洋娃娃 · Prime Picks(1) --the Pursuit of Happyness (by Chris Gardner)09年5月新书出版~ (2008-7-8) 孔武
· 悉尼单身聚会之最 (2006-10-4) maggie · 唯乐. (2015-9-4) absent11
Advertisement
Advertisement
查看: 2186|回复: 3

ssh 登录 Mac, 如果在命令行下截屏 [复制链接]

发表于 2019-11-4 21:08 |显示全部楼层
此文章由 eric_gao 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 eric_gao 所有!转贴必须注明作者、出处和本声明,并保持内容完整
我ssh登录Mac, 运行 /usr/sbin/screencapture 怎么报错呢。

请教大家,怎么抓屏。 谢谢了。

My-MacBook-Air:~ ericgao$ ps -ef | grep login
    0   111     1   0 Wed11am ??         0:00.21 /System/Library/CoreServices/logind
  501   129     1   0 Wed11am ??         0:48.26 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console
  501 10649 10628   0  8:59pm ttys000    0:00.01 grep login
My-MacBook-Air:~ ericgao$ /usr/sbin/screencapture /Volumes/test
screencapture: cannot write file to intended destination
My-MacBook-Air:~ ericgao$
My-MacBook-Air:~ ericgao$ sudo launchctl bsexec 129 screencapture /Volumes/test
Password:
screencapture: cannot write file to intended destination
My-MacBook-Air:~ ericgao$


老是提示 cannot write file to intended destination,  /Volumes/test 目录设的777, 谁都能写。

Sunday Afternoons UPF50+防晒帽专卖
oursteps.com.au/bbs/forum.php?mod=viewthread&tid=934220
Advertisement
Advertisement

发表于 2019-11-4 21:25 |显示全部楼层
此文章由 hbjoylee 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 hbjoylee 所有!转贴必须注明作者、出处和本声明,并保持内容完整
/usr/sbin/screencapture /Volumes/test/1.png, 少了文件名

发表于 2019-11-4 21:40 |显示全部楼层
此文章由 1ncase 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 1ncase 所有!转贴必须注明作者、出处和本声明,并保持内容完整
哈哈,就是少了文件名。

发表于 2019-11-5 08:55 |显示全部楼层
此文章由 eric_gao 原创或转贴,不代表本站立场和观点,版权归 oursteps.com.au 和作者 eric_gao 所有!转贴必须注明作者、出处和本声明,并保持内容完整
谢谢楼上两位。  加上文件名,现在是另一个错误

could not create image from display 0


My-MacBook-Air:~ ericgao$ ps -ef | grep login
    0   111     1   0 Wed11am ??         0:00.22 /System/Library/CoreServices/logind
  501   129     1   0 Wed11am ??         0:51.98 /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow console
  501 11354 11350   0  8:03am ttys001    0:00.00 grep login
My-MacBook-Air:~ ericgao$ sudo launchctl bsexec 129 /usr/sbin/screencapture /Volumes/test/1.png
Password:
could not create image from display 0
My-MacBook-Air:~ ericgao$

就是个笔记本,没有其他session, 就一个display。 不知道为什么这样。
Sunday Afternoons UPF50+防晒帽专卖
oursteps.com.au/bbs/forum.php?mod=viewthread&tid=934220

发表回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Advertisement
Advertisement
返回顶部