From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4108 invoked by alias); 6 Feb 2014 23:24:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18407 Received: (qmail 6927 invoked from network); 6 Feb 2014 23:24:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: Thorsten Kampe Subject: Executing command on reattaching to screen session Date: Thu, 6 Feb 2014 19:27:43 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p579b2444.dip0.t-ipconnect.de User-Agent: MicroPlanet-Gravity/3.0.4 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