LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   pppd and chat problem (https://www.linuxquestions.org/questions/linux-networking-3/pppd-and-chat-problem-98969/)

Ricky 10-01-2003 07:56 AM

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....
:cry: :cry:

Ricky 10-02-2003 09:05 AM

Is this forum is dead


All times are GMT -5. The time now is 10:02 PM.