LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-28-2004, 07:16 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,197

Rep: Reputation: 45
run my program


Hi .... i want to run my little program in the tty1 console.....
i HAve found the following line in the /etc/inittab
....agetty 38400 tty1...
I don't want the login prompt (the default one)........ but the login prompt of my program...
Any good suggestion???
 
Old 07-28-2004, 09:40 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
maybe replace "/sbin/agetty" with the command to run your program? (make sure theres at least 1 term with a agetty started on it, that way you can log in if your program is bad
 
Old 07-29-2004, 03:09 PM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,197

Original Poster
Rep: Reputation: 45
thx

Yep i have tried but it didn't work....
The problem is that the agetty must call the program in an appropriate way....
I have trid the -n and -l of the agetty's command but still it didn't work.....

I repeat the problem.. I have my program with its verification procedure and i want to be executed every time in one tty screen...
Any suggestions?
 
Old 07-29-2004, 03:46 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I suggest you post the error message you're getting.

Or a more verbose description of what's happening
when you pass your own program to the getty with -l ...



Cheers,
Tink
 
Old 07-29-2004, 05:01 PM   #5
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,197

Original Poster
Rep: Reputation: 45
I don't get anything... That's the problem... Only one login prompt appears i enter the login name and then nothing......
 
Old 07-29-2004, 05:57 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
If your program is working on a normal shell that may
be because the shell does some keyboard handling
for you ... getty might not ... are you manually checking
for \n?


Cheers,
Tink
 
Old 07-29-2004, 06:27 PM   #7
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,197

Original Poster
Rep: Reputation: 45
nop....how can i check for /n?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Program to run mfo6463 Linux - Newbie 2 04-21-2004 08:28 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 09:19 AM
How do I run a program? rtstar Linux - Newbie 2 07-25-2003 10:08 AM
how to run program? newbe45 Linux - Newbie 31 07-24-2003 10:49 AM
want to run my C program........ gurpreetpall Programming 4 03-22-2002 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration