Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Executing command on reattaching to screen session



As a side note: if you do this un Ubuntu and expect motd to show the
current system load and such you'll be disappointed. It will update
/etc/motd only on login.

2014-02-06 19:27 GMT+01:00 Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>:
> Hi,
>
> tough question: can I automatically execute a command on reattaching
> a detached byobu (screen or tmux) session?
>
> Every time I login, /etc/motd is displayed. Since I hardly ever log
> out and in, I'd like to have the same functionality when reattaching
> to my detached session. This could be a simple cat /etc/motd kind of
> "autostart".
>
> Thorsten
>



Messages sorted by: Reverse Date, Date, Thread, Author