![](/img/trans.png)
[英]Why does my computer keep pausing when I run a progam using the USB-serial ports?
[英]Using procmail to trigger applications to run on my computer… But I hit a snag
我想進行設置,如果我收到電子郵件,應用程序將自動運行。 我可以使用Email和fetchmail設置,但是我似乎在執行Linux命令本身時遇到問題。
這是Procmail代碼:
:0
* ^Subject: .*Subject
| xrandr --size 1360x768;\
firefox "link"; \
timeout 2m recordmydesktop; \
xrandr --size 1366x768
這是錯誤:
(process:3611): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Error: no display specified
No display specified for connection!
我找到了答案。
我只需要在其他腳本之前添加此行。 出口DISPLAY =:0.0; \\
整個代碼:
:0
* ^Subject: .*subject!
| export DISPLAY=:0.0; \
xrandr --size 1360x768;\
firefox "***"; \
timeout 150m recordmydesktop; \
xrandr --size 1366x768
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.