On Thu, 20 Apr 2006, in the Usenet newsgroup comp.protocols.ppp, in article
Post by Rodolfo MedinaPost by Moe TrinIf you have access to that console/terminal where you ran that command
and it is _running_ the pppd daemon (no command prompt), then pressing
the left Ctrl and C keys will stop the session.
No, I run that 'pppd call my_provider' and the command prompt returns
$ tail -f /var/log/pppd
get the pppd output on the same console where I did
'pppd call my_provider', and then close connection simpy with 'C-c'.
Can you suggest how to do so?
The 'tail -f /var/log/pppd; command is only getting what you told pppd
to put into that file - probable with the debug command and -v option to
chat. Without those options, pppd puts very little (if any) information to
the dialin terminal. Hmmm, had to look for a terminal that I've used
ppp in:
[compton ~]$ dialin454
ppp link connected to XXXXXX
[compton ~]$
Here, I used one of my dialin scripts, and the only thing seen is a message
I had /etc/ppp/ip-up create. No call progress, no dialer dialog - nothing.
I suspect you can add the option 'nodetach' to the file
/etc/ppp/peers/my_provider to cause the pppd not to have the terminal prompt
return immediately (which is the default from the command line).
Post by Rodolfo MedinaThanks: but 'killall pppd' only works under Debian;
It's disconnecting under mandrake, so it is working. You have another problem.
Post by Rodolfo MedinaApr 20 13:50:32 localhost chat[4212]: abort on (BUSY)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO CARRIER)
Apr 20 13:50:32 localhost chat[4212]: abort on (VOICE)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO DIALTONE)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO DIAL TONE)
Apr 20 13:50:32 localhost chat[4212]: abort on (NO ANSWER)
Apr 20 13:50:32 localhost chat[4212]: abort on (DELAYED)
Does your modem know how to say all of those things? Most do not.
Post by Rodolfo MedinaApr 20 13:50:32 localhost chat[4212]: send (ATZ^M)
Apr 20 13:50:32 localhost chat[4212]: expect (OK)
Please check the modem manual, and verify that is the recommended init
string. Under the Hayes command set, ATZ resets the modem to "some"
saved condition. In this case, it is not providing return codes, so
chat has no means of seeing what the modem is doing.
Post by Rodolfo MedinaApr 20 13:51:17 localhost chat[4212]: send (AT^M)
Apr 20 13:51:17 localhost chat[4212]: expect (OK)
Even less useful. "I am going to send you a command", and you send none.
Post by Rodolfo Medina. Then I have to switch off the phone and switch it on again, and then it
works.
When you "power cycle" the modem, you are setting it to the factory defaults,
and chat is able to talk to the modem.
Post by Rodolfo MedinaUnfortunately I have to use Mandrake because I don't know how to install
Emacs cvs and Gnus cvs under Debian yet.
I would expect CVS files to be used in the same manner in both systems,
but you might have found a CVS in rpm format, which is unusual.
Post by Rodolfo MedinaThanks: but on my system there's no file named ppp*.pid.
After pppd is up and running, it should create that file. When pppd
shuts down, it removes the file. Thus, you would only find it while pppd
is running. It's described in the man page.
Old guy