Gentoo Archives: gentoo-user

From: Kerin Millar <kerframil@×××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Running a program on a headless computer ?
Date: Sun, 28 Sep 2014 23:13:00
Message-Id: 542895EC.2080206@fastmail.co.uk
In Reply to: [gentoo-user] Running a program on a headless computer ? by meino.cramer@gmx.de
1 On 28/09/2014 15:13, meino.cramer@×××.de wrote:
2 > Hi,
3 >
4 > I want to run programs, which insist on haveing a terminal
5 > to write their status to and which are writing files which
6 > their results on a headless computer (beaglebone).
7 >
8 > I tried things like
9 >
10 > my_program -o file.txt -parameter value > /dev/null &2>&1 &
11 >
12 > but this results in a idle copy of this process and a defunct
13 > child.
14 >
15 > The program does not use X11 in any way...
16 >
17 > Is there any neat trick to accomplish what I am trying to do here?
18
19 Take a look at daemonize. It is available in portage.
20
21 http://software.clapper.org/daemonize/
22
23 --Kerin