Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我写了一个bash脚本如下:
#!/bin/bash echo "Enter a file name" read filename import -window root $HOME/Desktop/$filename.png
我希望这个脚本能够截取屏幕截图并将给定文件名的图像保存在 m 桌面上......
问题:我的 ubuntu 终端出错。导入:找不到命令
我猜这是来自 imagemagick 的“导入”:
sudo apt-get install imagemagick
尝试这个
while true; do scrot -d 900 'DEMO%d-%H:%M:%S.png' -e 'mv $f /home/'; done