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 E686C13838B for ; Sun, 28 Sep 2014 16:24:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA9F0E0973; Sun, 28 Sep 2014 16:24:39 +0000 (UTC) Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF9DEE0959 for ; Sun, 28 Sep 2014 16:24:38 +0000 (UTC) Received: by mail-ie0-f181.google.com with SMTP id at20so2701475iec.12 for ; Sun, 28 Sep 2014 09:24:38 -0700 (PDT) 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 :content-type:content-transfer-encoding; bh=v9B1G8iUfdPgJGfI3u7X2UMJ/pgRUHtGJZScXZcBui8=; b=RAJFcWzr4TQePswWLxbbRvgYYzqnmlUxR4RQBvvZR5Eg57V/3dZSaN8ciWyVJPgou+ PImboELkFFSjpyGCr+FCmNfOM0i7S2yyNI8Ty78pRXFJlaInhVEbm9mfkK9iBYKIdZsC Q8HzAxau1uMKCmEhlpTv4Q65SWlMCXIbh1G8W9IF8PGaLthWuoL79xUtDTaGH6WDp59z n61hOWEZuMlHPUwxXZsgb3SLValqst9at6niRi0qZaC7ZUxQWx8aiQE3SJk4EXB1vrVs FPWybm6QpEr9MSMm3rgTVXr1rCBdi6e8khj2diBgr9H/FE3DtVWKQOvXVnAzzqrgdrF4 f56w== 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 X-Received: by 10.43.155.13 with SMTP id lg13mr40916294icc.15.1411921478011; Sun, 28 Sep 2014 09:24:38 -0700 (PDT) Received: by 10.107.154.8 with HTTP; Sun, 28 Sep 2014 09:24:37 -0700 (PDT) In-Reply-To: <20140928160842.GA17837@solfire> References: <20140928141351.GD3821@solfire> <20140928160842.GA17837@solfire> Date: Sun, 28 Sep 2014 18:24:37 +0200 Message-ID: Subject: Re: [gentoo-user] Running a program on a headless computer ? From: =?UTF-8?Q?Randolph_Maa=C3=9Fen?= To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 5a7950cc-b334-4fbc-ab01-819badb6d611 X-Archives-Hash: 4294380dc493dbe00c8c29166b227189 2014-09-28 18:08 GMT+02:00 : > > Randolph Maa=C3=9Fen [14-09-28 16:24]: >> On Sep 28, 2014 4:14 PM, wrote: >> > >> > Hi, >> > >> > I want to run programs, which insist on haveing a terminal >> > to write their status to and which are writing files which >> > their results on a headless computer (beaglebone). >> > >> > I tried things like >> > >> > my_program -o file.txt -parameter value > /dev/null &2>&1 & >> > >> > but this results in a idle copy of this process and a defunct >> > child. >> > >> > The program does not use X11 in any way... >> > >> > Is there any neat trick to accomplish what I am trying to do here? >> > >> > Thank you very much in advance for any help! >> > Best regards, >> > mcc >> > >> > >> > >> >> I would suggest to run the program in a screen session, you can disconne= ct >> frim the session and reconnect later. >> >> http://www.gnu.org/software/screen/ >> >> -- >> Best regards >> Randolph Maa=C3=9Fen > > Hi Randolph, > > ...the headless device will be booted and the programm will be startet > via a kind of autostart script. No human intervention is > wanted/possible... This is possilble with screen. yust start a screen session in your script screen -dmS "SessionName" and run the program you want screen -S "SessionName" -p 0 -X stuff "$program\n" where -p gives the screen window number > > Best regards, > mcc > > > --=20 Mit freundlichen Gr=C3=BC=C3=9Fen / Best regards Randolph Maa=C3=9Fen