LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2002, 11:18 AM   #1
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
Question 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.

Last edited by frieza; 09-24-2002 at 11:20 AM.
 
Old 09-25-2002, 12:26 PM   #2
msmarcal
LQ Newbie
 
Registered: Sep 2002
Location: Brazil
Distribution: Fedora Core
Posts: 9

Rep: Reputation: 0
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)
 
Old 09-27-2002, 10:21 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Original Poster
Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
that works for a vc, but how about a serial line, that was my question
 
Old 10-01-2002, 11:46 AM   #4
msmarcal
LQ Newbie
 
Registered: Sep 2002
Location: Brazil
Distribution: Fedora Core
Posts: 9

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting getty to run. kulmis Debian 2 09-03-2004 01:51 PM
Scrolling in a TTYSX? zajelo3 Linux - General 2 07-24-2004 08:52 PM
What is getty? swmok Linux - Software 2 07-07-2004 05:54 AM
Null modem cable .... cat < /dev/ttySx problem.... chvsspraveen Linux - Networking 1 03-24-2004 12:12 AM
kernel 2.6.0 probs with terms and /dev/ttySx Oxagast Linux - General 3 12-22-2003 03:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration