Solved

making mgetty respond faster

Posted on 2000-03-06
2
172 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
Comment Utility

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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now