I'm trying to make a pretty nice desktop console which can show system logs from /dev/logi . The device displays new content from several files in /var/log . I want to use urxvt and tmux to do so. Everything seems to be working, but I have no idea how to autostart it. I'm using openbox, so I tried adding the following line to /home/morfik/.config/openbox/autostart :
(sleep 2 && urxvt -name 'konsola_desktop' -e sh -c "tmux -c 'cat /dev/logi'") &
This doesn't work as expected. urxvt stars and if something is logged, it is displayed on the console. But one part is missing, there's no tmux. I need it because I set in /home/morfik/.Xresources the following option:
and I use tmux buffer specified in /etc/tmux.conf :
set -g history-limit 5000
So, if I start the command above, I'm not able to scroll output. I can't even divide screen because tmux isn't there. There's also no tmux process:
ps -eo "%mem args" | grep -i tmux 1.1 urxvt -name konsola_desktop -e sh -c tmux -c 'cat /dev/logi' 0.0 sh -c tmux -c 'cat /dev/logi'
But when I just do the following steps:
urxvt -name 'konsola_desktop' tmux cat /dev/logi
everything works just fine:
ps -eo "%mem args" | grep -i tmux 0.1 tmux 0.1 tmux
Does anyone know what's going on?