LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ititilize ttySX using other than getty (https://www.linuxquestions.org/questions/linux-software-2/ititilize-ttysx-using-other-than-getty-31105/)

frieza 09-24-2002 11:18 AM

initilize ttySX using other than getty
 
can you initialize a serial tty so that it only runs one program you specify, such as dopewars or cdp instead of a shell or a getty? basically, bypass the login prompt but only allow that one program to run.

msmarcal 09-25-2002 12:26 PM

Hi frieza,

Some linux distros have the "open" command.

You can initialize a program including a line like the folowing at your /etc/inittab:

---
12:2345:respawn:/usr/bin/open -c 12 -w -- /usr/bin/program
---

It will start "/usr/bin/program" automatically at the terminal 12 (tty12)

frieza 09-27-2002 10:21 PM

that works for a vc, but how about a serial line, that was my question

msmarcal 10-01-2002 11:46 AM

hmm...

I think you can modify /etc/mgetty(or mgetty+sendfax)/login.config to run the desired program instead /bin/login

You also have to change /etc/inittab to call mgetty at boot time.


All times are GMT -5. The time now is 04:23 PM.