2014-09-28 18:08 GMT+02:00 <meino.cra...@gmx.de>: > > Randolph Maaßen <r.maasse...@gmail.com> [14-09-28 16:24]: >> On Sep 28, 2014 4:14 PM, <meino.cra...@gmx.de> 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 disconnect >> frim the session and reconnect later. >> >> http://www.gnu.org/software/screen/ >> >> -- >> Best regards >> Randolph Maaßen > > 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 > > > -- Mit freundlichen Grüßen / Best regards Randolph Maaßen