From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.67) (envelope-from ) id 1IFTaN-0003uG-Qq for garchives@archives.gentoo.org; Mon, 30 Jul 2007 11:38:52 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l6UBbYSF025407; Mon, 30 Jul 2007 11:37:34 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l6UBXKQg020650 for ; Mon, 30 Jul 2007 11:33:20 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id D06092350E for ; Mon, 30 Jul 2007 11:02:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at volumehost.net Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6uwm+nA80EWM for ; Mon, 30 Jul 2007 11:02:51 +0000 (UTC) Received: from dellbuntu.local (unknown [70.182.175.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 1264423488 for ; Mon, 30 Jul 2007 11:02:51 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] program autostart from another user Date: Mon, 30 Jul 2007 06:02:31 -0500 User-Agent: KMail/1.9.6 References: <200707301129.41358.alexey.kv@gmail.com> In-Reply-To: <200707301129.41358.alexey.kv@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1454123.61Pu2S396X"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200707300602.35876.bss03@volumehost.net> X-Archives-Salt: a2956671-2f12-4026-b93f-253191bac5d9 X-Archives-Hash: 891bd7f16243b3cf42d0a4665373433e --nextPart1454123.61Pu2S396X Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 30 July 2007 03:29:36 am Aleksey V. Kunitskiy wrote: > I want to auto start some programs on startup, using init > My local.start looks like: > sudo -u user_name screen program > > My question is - is it the right way? You don't have to use screen, but that should work. > How can I attach next program to existing screen session (by creating new > buffer in screen session)? Reading over the manpage, something like this (but "sudo -u"d) should work: # Create a new screen session, detached, with name screen -d -m -S system-autostart-foo # In a named window in that session, run bar screen -S system-autostart-foo -X at cmd-bar# bar # In a named window in that session, run baz screen -S system-autostart-foo -X at cmd-baz# baz But, I've never tried to use screen in this way, no this is just a guess. = I'm=20 sure it's possible to use screen the way you want. =2D-=20 Boyd Stephen Smith Jr. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ,=3D ,-_-. =3D.=20 bss03@volumehost.net =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 `-'(. .= )`-'=20 http://iguanasuicide.org/ =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0\_/ =C2=A0 =C2=A0=20 --nextPart1454123.61Pu2S396X Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBGrcVLdNbfk+86fC0RAu5bAJ92KYTodXl5HqUeloQNlfLSxYIx7QCfVvDq 3V56e38EMorqqvu3GnL9hwI= =gtzc -----END PGP SIGNATURE----- --nextPart1454123.61Pu2S396X-- -- gentoo-user@gentoo.org mailing list