you have to make the script file executable if it isn't already;
chmod a+x filename will allow all users to execute it. Also the script must
be in your path, in your home directory or put it in usr/bin or
usr/local/bin. If its not then even if you cd to the directory you will have
to issue the command with ./(command_name). I don't use ppp-on, ppp-off so
not sure of specifics. If you're using RedHat then there are other easier
ways to connect. I believe there is a network config aplet in control panel
which you're supposed to be able to use. There are other small aplications
which make it a snap. Like ezppp. I have changed to the Kde desktop and it
has its own ppp configuration tool, very easy. Until I set up a seperate
Linux box to dial for my home network about a year ago I used a dip script
called connect.dip;
----------------------------------------------------------------------
#File: connect.dip
#This file enables you to connect to the Internet
#through PPP
main:
echo on
port /dev/cua3
speed 38400
send atz\r
wait OK 2
send ATDT(your isp phone #)\r
wait CONNECT 150
wait ogin:
send username\r
wait Password:
send password\r
#change username and password to your own
wait $
#change $ to whatever prompt your Isp is using to start PPP
send ppp\r
mode PPP
get $locip remote
get $rmtip
get $rmtip (your isp ip number)
print "Your Local IP is $locip
default
mode PPP
---------------------------------------------------------
again chmod a+x connect.dip
then from the command line;
dip connect.dip
and you should be connected!
There are many ways to "get connected" partly because isps use different
methods. My isp just changed to chap authentication and I had to figure that
one out.
http://www.on-net.net/~jsprag/linuxnet.htm
I have a bunch of linux networking stuff.
Tom Bernett wrote:
> Hi all,
>
> Total newbie here. I'm using RH5.2
>
> I've managed to get online manually by establishing a ppp session in
> minicom, and then issuing the command "pppd /dev/modem...."
>
> Now I want to automate the process. I found the ppp-on, on-dialer, &
> off scripts and copied them to /etc/ppp and modified them as necessary.
>
> I think I understand things to this point. But the ppp-* files are just
> scripts. Where's the executable (like a *.bat in DOS). The ppp-howto
> and the newsgroup archives imply that all that's needed is to create the
> files, put them where you can access them, and run by entering ppp-on.
> All I get is "commnand not found". What am I missing?
>
> Also, the scripts have no provision for minicom (or any other
> dialer/terminal program) as far as I can see. Just what is the process
> for automating logon/logoff? Again, the howto and archives were no help
> to me.
>
> Thanks,
>
> Tom