Solved

making mgetty respond faster

Posted on 2000-03-06
2
184 Views
Last Modified: 2013-12-16
I would like to make the login prompt mgetty posts once the connection is made, appear a bit faster. The problem is clients need to specify a pause 2 otherwise their information is sent too quickly. I know I could optimize the connection by putting some "expect ..." and "send ..." in the clients' scripts, but I rather not do that. Is there a delay setting in mgetty that I'm missing?
thanks
0
Comment
Question by:tibori
2 Comments
 

Accepted Solution

by:
avery1 earned 15 total points
ID: 2589191

In my experience there is no way to easily speed this up.

Mgetty spawns a local login program (usually /bin/login).  This is configurable in login.config, or set at compile time in policy.h in the line

#define DEFAULT_LOGIN_PROGRAM "/bin/login"

There is no deliberate delay before the login string pops up, and I don't see a way to make it pop up any faster.  

You might look at login.c in the source.  It first attempts to read the login.config file and then does some checks for file perms and ownership.  You might be able to shave a little time off by tweaking the source in login.c

-Avery
0
 
LVL 3

Author Comment

by:tibori
ID: 2589506
avery1: Unfortunately I believe you're right...but could you change your answer to a comment for a little while to see if this is the general consensus.
Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question