Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-21-2009, 05:23 AM
|
#1
|
LQ Newbie
Registered: Jan 2009
Posts: 4
Rep:
|
Runnig chat separately from pppd
Hi,
I'd like to run chat separately from pppd. Normally it is called internally from pppd when "connect" parameter is used in pppd config file.
Chat is started with help of fork() in pppd source code and it seems that there is new process created with redirected input/output to /dev/ttyS0.
How can I start chat and how can I dedicate which port to use for modem connection in shell command line ?
Peter
|
|
|
01-22-2009, 09:19 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,493
|
Quote:
Originally Posted by Peter333
Hi,
I'd like to run chat separately from pppd. Normally it is called internally from pppd when "connect" parameter is used in pppd config file.
Chat is started with help of fork() in pppd source code and it seems that there is new process created with redirected input/output to /dev/ttyS0.
How can I start chat and how can I dedicate which port to use for modem connection in shell command line ?
Peter
|
How about using minicom instead? Let's you talk directly to a serial/modem port, no PPP involved.
|
|
|
01-23-2009, 02:20 AM
|
#3
|
LQ Newbie
Registered: Jan 2009
Posts: 4
Original Poster
Rep:
|
Hi,
to use minicom is problem, because it must be functional in several different Linux distributions, chat is present in all of them, minicom not.
But I found temporary solution, I am using simple shell script which uses:
echo -e "AT+COMMAND>\r" > /dev/ttyS0
But it should be perfect to have something more inteligent for example chat, because it also investigates modem responses and returns success/fails on finishing.
If somebody is master of shell scripts, it should be great to know ho to do it
:-)
Peter
|
|
|
01-23-2009, 09:13 AM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,493
|
Quote:
Originally Posted by Peter333
Hi,
to use minicom is problem, because it must be functional in several different Linux distributions, chat is present in all of them, minicom not.
But I found temporary solution, I am using simple shell script which uses:
echo -e "AT+COMMAND>\r" > /dev/ttyS0
But it should be perfect to have something more inteligent for example chat, because it also investigates modem responses and returns success/fails on finishing.
If somebody is master of shell scripts, it should be great to know ho to do it
:-)
Peter
|
Well, minicom does run on any distro, although it may not be installed by default on all of them.
There may be scripts already written to do what you'd like, but it will be problematic for different systems, which sounds like what you're going for. If people have modems on different ports, or USB modems, all those will be different. Add to that folks who may have devices (printers? Console terminal?), plugged into serial ports, and burping out modem-check strings could cause bad things to happen.
|
|
|
All times are GMT -5. The time now is 12:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|