I'm trying to start an application (newsbeuter) at boot but I can't. I'm tyring with:
tmux new-session -d -s main
tmux new-window -t main:1 '/usr/bin/newsbeuter'
Tmux is up but the newsbeuter dont start:
ps -ef | grep -i tmux
root 2118 1 0 16:09 ? 00:00:00 tmux new-session -d -s main
pi 2245 2211 0 16:09 pts/1 00:00:00 grep --color=auto -i tmux pi@raspberrypi
ps -ef | grep -i news
pi 2247 2211 0 16:09 pts/1 00:00:00 grep --color=auto -i news
Could you help me please? Many thanks and sorry for my english!
Upon startup, Newsbeuter will look for URLs file, first in $XDG_CONFIG_HOME/.config/newsbeuter
, then in ~/.newsbeuter
(the file should be named urls
). If it doesn't find any, it will quit with an error message. I'm supposing that's what's happening in your case: since you're starting things from /etc/rc.local
, your $HOME
is not your user's, so Newsbeuter doesn't find the file and quits.
One way to correct this would be to su
into your user before starting Newsbeuter.
Another would be to provide the path to urls
explicitly with --url-file=/home/username/.newsbeuter/urls
(and also --cache-file
, probably --config-file
as well).
要查看可能的错误消息,请在tmux new-window
之前执行tmux set set-remain-on-exit
,然后attach
到新窗口,然后按Ctrl - B Page Up 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.