添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
发怒的花卷  ·  Trying to run a ...·  1 周前    · 
不拘小节的毛巾  ·  Tenable Community·  11 月前    · 
独立的荔枝  ·  pssh使用方法 - OPS Notes ...·  11 月前    · 

I'm trying to run a script with crontab every 5 min.
But there is no result. When I cat the log file, I get the following:

Cannot autolaunch D-Bus without X11 $DISPLAY

Am I missing or should install something. Read online that the following
DISPLAY=:0 dconf reset -f /org/compiz/
Could resolve the issue. I tried it in the terminal and copied to the script but it doesn't work.

The line I created with crontab -e is as follows:
*/5 * * * * ~/Scripts/myscript.sh > /tmp/my.logfile 2>&1

Unless you installed and configured Compiz, then that setting will not help.

sudo apt-get install pass gnupg2

Generate your gnupgp key

gpg2 --gen-key

https://medium.com/@davidpiegza/using-pass-in-a-team-1aa7adf36592

pass init $gpg_id

Should I install compiz first and then run the commands you suggest?
BTW it says compiz-core.

What says compiz-core?

The above deals with having the authority to enact certain sensitive commands, and is unrelated to Compiz.
You appear to be trying to run a script that requires gnupg access. If I have gotten the wrong end of the stick, please let me know.

None of that should require or have anything to do with Compiz.

However , it may be that the task you are trying to run requires Compiz. I do not know. Only you know that, currently. :wink:
I am not in the habit of asking people to relay what the exact script is or what it is for...

I have to say but its not authority related.

I've installed compiz-core, but don't know much about setting it. I hoped someone with the crontab, X11 display settings or compiz would know more, concerning the feedback from the logfile.

Reading the net I find only crontab rules with scripts having to do mostly with backing up. I personally do backing up manually.
The script I'm running does effect the display.

Nope, I'm not backing up or doing something to root, except effecting the display that is. Do you think the error concerning D-Bus, X11 or Display is authority related?
But not password, because the output/error would then be of a diff. kind.

I still do, yes, because Xorg is in root, as well.
I think compiz is chasing an untamed ornithoid without cause.
Without really knowing what you are scripting or calling on...: