Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ To: cygwin AT cygwin DOT com From: "BB" Subject: Re: Does agetty work with a modem Date: Wed, 19 Feb 2003 18:52:14 -0600 Lines: 59 Message-ID: References: <59A835EDCDDBEB46BC75402F4604D5528F7666 AT elmer> <003501c2d879$2fa1a3c0$775f4e51 AT webdev> Reply-To: "BB" X-Complaints-To: usenet AT main DOT gmane DOT org X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 The script autoans.sh get called without the space after -e. That's not a problem. I did look at the man info and all the file that came with agetty. There is very little about getting it to work with a modem. They don't have information about setting the modem to auto answer. The script I listed in the inittab file (autoans.sh) was my script. I could not get it to set the modem to auto answer. "Elfyn McBratney" wrote in message news:003501c2d879$2fa1a3c0$775f4e51 AT webdev... > > Can anyone help me get agetty working? I need to set up Cygwin to answer > a > > modem call with agetty. Here are a few questions I have. I would really > > appreciate some help because I cannot find much information about agetty > on > > Cygwin. > > > > 1. How do I set the modem to auto answer. Can I do this in a shell script > > using the agetty -e option to execute a command? I tried "echo ATS0=1 > > > /dev/ttys2" but it doesnt work. I am using COM3. > > > > 2. It looks like agetty immediately opens the com port and attempts to > read > > a login name from it. Does this mean that it expects the modem to be > > connected with it executes. There doesnt seem to be any code in agetty to > > wait for a modem to answer. Do I need to wait for the modem to connect > > using the -e command option? > > > > My inittab file has the following line > > > > S3:2345:respawn:/sbin/agetty -8 -N -1 -h -t60 -e/bin/autoans.sh 9600 ttyS2 > > ^^^^^^^^^^ > > Should be -e /bin/autoans.sh (should have a space after no?). Take a look at > the man page (`man 8 agetty') and the documentation > > /usr/doc/agetty-2.1/Users_Guide > /usr/doc/Cygwin/agetty.README > > Which should help you :-) > > Regards, > > Elfyn McBratney > elfyn AT exposure DOT org DOT uk > www.exposure.org.uk > > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/