From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 675791388E3 for ; Tue, 7 Oct 2014 11:45:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A41ABE09FF; Tue, 7 Oct 2014 11:45:42 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id 6533BE08AB for ; Tue, 7 Oct 2014 11:45:34 +0000 (UTC) Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.3]) by mail.digimed.co.uk (Postfix) with ESMTPSA id 11CD620C98 for ; Tue, 7 Oct 2014 12:45:34 +0100 (BST) Date: Tue, 7 Oct 2014 12:45:33 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Again some "headless" stuff/question Message-ID: <20141007124533.2a2b2c0f@hactar.digimed.co.uk> In-Reply-To: <20141005043455.GA3856@solfire> References: <20141005043455.GA3856@solfire> Organization: Digital Media Production X-Mailer: Claws Mail 3.10.1-119-g7fbc83 (GTK+ 2.24.24; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/6f2z=Tn90SkaNBo.huIO1L_"; protocol="application/pgp-signature" X-Archives-Salt: 1fed8214-dbc7-4a31-92a8-168433572b9d X-Archives-Hash: 3f1a4268a4efb5c01250da57b7aa2151 --Sig_/6f2z=Tn90SkaNBo.huIO1L_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 5 Oct 2014 06:34:55 +0200, meino.cramer@gmx.de wrote: > for starting and running a script on a headless system for me "nohup" > works perfectly. > For interactive session via ssh screen/tmux turned out to be the > solution to detach from jobs started from the commandline. > Both are hints/help I received from the community here. :) > Thank you very much !!! :))) >=20 > Since the screen/tmux thingie is THAT convenient I would like to start > this as the default when logging in via ssh. > I could write a script which is started by the shell (zsh) which in=20 > turn is started as part of the login process. > Screen would start another shell and TADA!... > But this is an embedded system... >=20 > The result should be a running screen session right after login via > ssh. >=20 > Is there any "shorter path" to what I am trying to do -- without the > cascade of shells which do nothing but waiting of the child process to > end? I have this in ~/.zshrc. if [[ "${TERM}" !=3D "screen" ]] && [[ -z "${STY}" ]] && [[ ! -f ~/.noscree= n ]]; then screen -xRR && exit fi --=20 Neil Bothwick Last words of a Windows user: =3D Where do I have to click now? - There? --Sig_/6f2z=Tn90SkaNBo.huIO1L_ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlQz0l0ACgkQum4al0N1GQMQbgCdEFZV/mj2DNVrRbhn4q3A+m4l 0SsAn0D8NotSRxREnceEwh3A55O1PHPC =ucAB -----END PGP SIGNATURE----- --Sig_/6f2z=Tn90SkaNBo.huIO1L_--