我试图从crontab运行vino服务器:
* * * * * /home/nvidia/run_vino.sh > /home/nvidia/LOG 2>&1使用此脚本:
#! /bin/bash
export DISPLAY=:0.0
xhost +
nohup /usr/lib/vino/vino-server --display=:0.0但是服务器没有启动,我在/home/nvidia/LOG中获得了下一条消息:
access control disabled, clients can connect from any host
(vino-server:21503): dconf-CRITICAL **: 20:51:02.009: unable to create file '/home/nvidia/.cache/dconf/user': Permission denied. dconf will not work properly.
(vino-server:21503): dconf-CRITICAL **: 20:51:05.041: unable to create file '/home/nvidia/.cache/dconf/user': Permission denied. dconf will not work properly.
** Message: 20:51:05.045: The desktop sharing service is already running, exiting.这里怎么了?
发布于 2020-05-29 09:43:10
您可能需要为cron作业指定一个用户。假设您可以自己从命令行运行脚本,然后将您的用户名添加到cron选项卡条目中的第6位置。这是在最后一个*和运行作业的命令之间。
https://askubuntu.com/questions/1244624
复制相似问题