From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26595 invoked by alias); 13 Feb 2014 10:29:12 -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: 18439 Received: (qmail 120 invoked from network); 13 Feb 2014 10:29:07 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mnskdpXD763UF2su3LzOCokXpAUn1xUVYrz1htRgWqE=; b=j2UOUqvsLyuYl1qdZrevp9Fqd6K5vxJJ0MMw/66J/AI4/5/qL5a5vF3NVrMRDnsSrT 0xvOXWrw2Efxm9Rn8GpTkUHu4VxnH1okkha3wPdfVBDvDjrQoJG9cGxquJJsRnztwuXF JO6i331Bh9yIypSLKH3k48NhI72d1q/SK61mspnDS0ECu+X8dxCARqCvoL5mKXxTtdbt sCriP7VfxbjBkCYG2zAlx9rwgv+2GcaZ7z1kDJPehs8ke8Oo8tJEGesP29OdzdcLff61 DyDhRRNaQtkCTrXzJ9GSrekxFVmpciHQEyn5Jm1Ckve50PJ+DdAQxl+Azd1aJbhgUlIn fbIQ== MIME-Version: 1.0 X-Received: by 10.180.84.73 with SMTP id w9mr1335684wiy.58.1392276777313; Wed, 12 Feb 2014 23:32:57 -0800 (PST) In-Reply-To: References: Date: Thu, 13 Feb 2014 08:32:57 +0100 Message-ID: Subject: Re: Executing command on reattaching to screen session From: Sebastian Stark To: Thorsten Kampe Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 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 : > 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 >