看板 Linux 關於我們 聯絡資訊
小弟目前遇到screenshot的問題 以爬文知道gnome-screenshot指令 但是機台沒有解壓縮screenshot的package 也不能解壓縮或安裝其他東西 所以其他要install的工具也都不能使用 需要寫在start up的script內所以也不能動手按 想問看看有沒有command可以按下鍵盤上的prtsc鍵 或是可不可以寫成script來處發鍵盤上的prtsc鍵 或是還有甚麼其他方法可以使用 目前還有試到xwd -root -out screen.png 有產生檔案但是打不開(OS 使用SLES12.1) 麻煩了謝謝各位 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.140.68.130 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1458878349.A.A23.html
HamalAri: 只是要按鍵盤的話 xdotool 03/25 12:26
Bencrie: xwd dump 出來的東西不是 png 吧 XD 03/25 13:06
EdwardGJLee: xwd -root | convert xwd:- screen.png 03/25 19:13
hijkxyzuw: 樓上,如果有 imagick 直接 import -window root 就好 03/25 20:22
EdwardGJLee: 樓上,當然也可以,只是照題意回應罷了! 03/25 20:48