LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-01-2003, 07:56 AM   #1
Ricky
Member
 
Registered: Sep 2003
Posts: 34

Rep: Reputation: 15
pppd and chat problem


Hi 4all,

I am using a GSM phone to connect to net... To do so my isp provided me a program and a script to connect to internet.. IN that i have to type following at console to connect to internet..
Quote:
connect <usrname> <password>
Note: I cannot use with kppp due to some reason..

Problem::: :: I want that i don't have to enter username and password each time.. How can I do that ...

Below is the script which is provided by my ISP to make connection.
Quote:
#!/bin/sh
if [ $# -ne 2 ]
then
echo "Error in $0 - Invalid Argument Count"
echo "Usage: rconnect <phone no> <phone no>"
echo "Currently phone no is used for both username and password"
exit
fi
echo user $1 password $2 >$HOME/.ppprc

route | grep default >/dev/null
if [ $? = 0 ]
then
set `route | grep default`
route del default
echo $2 >$HOME/.routedefault
fi

pppd /dev/rmodem 115200 debug usepeerdns defaultroute connect '/usr/sbin/chat -v "" at+ifc=2,2 OK "atdt#777" CONNECT' mtu 264
And please tell me that which thing do wht...

Thanx in again...

Note :: I was also seeing tutorials on scripting in linux but that was too long and to do my work that is too big....

Last edited by Ricky; 10-01-2003 at 08:00 AM.
 
Old 10-02-2003, 09:05 AM   #2
Ricky
Member
 
Registered: Sep 2003
Posts: 34

Original Poster
Rep: Reputation: 15
Is this forum is dead
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPP library & pppd, chat return codes ruchika Linux - Networking 1 03-08-2011 02:50 AM
is there a prog like gaim that has voice chat, chat to groups, and webcam support? kublador Linux - Software 3 07-08-2008 07:53 AM
pppd/chat error after new slackware install Kanaflloric Slackware 3 09-28-2004 12:05 AM
pppd died: pppd options error (exit code 2 taveirac Linux - Networking 1 02-12-2004 10:17 AM
Pppd does not wait for chat script to finish ruchika Programming 1 08-28-2003 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration