*BSD News Article 73719


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!lll-winken.llnl.gov!uwm.edu!news.moneng.mei.com!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!al-burro.MIT.EDU!ilin
From: ilin@mit.edu (I-Lin Wang)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: problems about dial up..
Date: 15 Jul 1996 00:41:04 GMT
Organization: Massachvsetts Institvte of Technology
Lines: 53
Message-ID: <4sc430$4gt@senator-bedfellow.MIT.EDU>
References: <4s9egj$2uc@senator-bedfellow.mit.edu>
NNTP-Posting-Host: al-burro.mit.edu
X-Newsreader: TIN [version 1.2 PL2]

I-Lin Wang (ilin@mit.edu) wrote:
: Hi
: I used 'dip' to connect to a terminal server by modem, since I don't know 
: how to make it work by using tip or cu... However, I have some problems 
: about using dip now:
: 1. If I don't execute it as a root, then, when I tried to "port ttyd1", it 
: will say
:    DIP> port ttyd1
:    DIP: tty: lock: (/var/spool/lock/LCKTMP..562): Permission denied
:    even I have "chmod 777 /dev/ttyd1", it still said permissoin denied...
: 2. If I execute it as a root, then, everything is fine.
:    but if I close the window which dip is running, and reopen a new dip 
:    window, then, after I "dip -t" and "port ttyd1", 
:    DIP> port ttyd1
:    DIP: tty: lock: (/var/spool/lock/LCK..ttyd1): Interrupted system call
:    Then, I can't make the call anymore.(even I logout and login again..)
:    I also tried to use ppp after this situation, but it also said
:    
:    ppp ON ilin> dial host 
:    failed to open modem.

:    So, what should I do to make my modem "available"?(rebooting is not a 
: good solution.)
==>This can be solved by "chmod 777 /var/spool/lock"
: 3.I have a problem about ppp. I can use ppp to connect my ISP now. But 
:   the trouble is: I have to dial 0 first to detect the dial tone; in AT 
:   command, it's "atx0". But when I use ppp, I don't know how to do this job 
:   in the script. for example, some part in my ppp.conf is 
: default:
:  set device /dev/cuaa1
:  set speed 14400
:  disable lqr
:  deny lqr
:  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK 
: \\dATDT\\T TIMEOUT 40 CONNECT"

: How to add something to let it do "atx0" first? The reason I saked this, 
: is because my poor telephone line usually can not detect tone, so, I have 
: to dial 0 manually everytime which is troublesome..
==>This can be solved by changing the line above as:
  set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK-ATX0-OK\\dATDT\\T TIMEOUT 40 CONNECT"

: Please give me any suggestion. Thanks.

-----:                                                 ilin
So, I have solved 2 problems. But for the 1st one, I still do not know how to "disconnect"  a connection in dip if I want to disconnect it at any time...

Also, I found a new problem for dip:
4.It seems that Ctrl-c won't work in dip, when I press Ctrl-c, it did not
  recognize it...(I mean, when I use the terminal mode in dip, I can't use Ctrl-c to stop some command...) 
  Is this a bug or??

				I-Lin Wang