LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Binding a interactive service to its own TTY (https://www.linuxquestions.org/questions/linux-general-1/binding-a-interactive-service-to-its-own-tty-629160/)

sin 03-19-2008 06:34 AM

Binding a interactive service to its own TTY
 
Is this possible ? ive been asked to set up a linux box as a counterstrike source server, that was trivial, however would it be possible to bind the programs I/O to a TTY so that output and commands can be run on a TTY without a user having to login ?

matthewg42 03-19-2008 08:17 AM

I don't know anything about counterstrike source server. Assuming it is a console app which can run in a terminal, I'd just run it in screen. If you want to re-launch it on crashes, just wrap it in a script which keeps calling the program in a loop.

By running in screen, you can disconnect the program from the tty it is on, leave it running in the background, log out, and at a later date, log in and re-attach the screen session to whichever tty you are now logged in to.


All times are GMT -5. The time now is 08:38 PM.