tah*_*her 2 software-recommendation screenshot
我在 Windows 中使用 zscreen 每 2 分钟捕获一次屏幕并将它们保存在带有日期时间标签的本地文件系统中。是否有任何工具或脚本可以在 linux Ubuntu 上执行此操作?
您可以使用 scrot 并将其放入 /etc/crontab 将其添加到 /etc/crontab
*/2 * * * * <username> scrot
Run Code Online (Sandbox Code Playgroud)
为此,您需要 scrot,您可以像这样安装它:
sudo apt-get install scrot
Run Code Online (Sandbox Code Playgroud)
您还可以为 scrot 提供以下参数以将图像移动到您的图片目录
scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/'
Run Code Online (Sandbox Code Playgroud)