[plug] Trace files
Anthony J. Breeds-Taurima
tony at cantech.net.au
Mon Dec 11 09:34:25 WST 2000
On Sun, 10 Dec 2000, Robert Andrews wrote:
> Hi all
> ? When I issue a command like IFUP PPP0
> is there a way that i can see exactly what files and scripts are being used by the command
> other than going through the scripts themselves.
you can do sh -x ifup ppp0 That will show you what ifup does BUT if ifup
calls other shells scripts you wont see what they do.
I believe there should be a way to make all shells inherit the -x flag but I
don't know how.
> I am relitvly new to Linux and live in a town that I know of no other Linux users.
> This group is my only source of communication about Linux so please bear with me.
> I have a file in /etc/ppp/ ifcfg-ppp0 that issues commands to my modem however it does not appear to be used so the modem configuration must be comeing from another file.
> I will no doubt want to trace other commands in the future to see what files and scripts are being executed so I can continue my Linux self teaching.
You're useing a RedHat (based) system The way redhat does it's modem stuff
changes with the different versions but the details below are basically the
same.
/etc/ppp/ should contain
ip-up, if-up.local scripts run when the PPP link comes up.
ip-down, if-down.local scripts run when the PPP link goes down.
options options you want PPP to run with, RedHat tends
to do lots of it's optins on the command line
pap-secrets If you are using PAP then the details are here
chap-secrets If you are using chap then the details are here
The rest of the config stuff is in /etc/sysconfig/network-scripts
The files relevant to ppp are:
ifup-ppp
This script does that actual work of bringing the link up.
ifcfg-ppp0 (the 0 will vary if you have more than one ppp link)
Config file for the conection
chat-ppp0 (the 0 will vary if you have more than one ppp link)
chatscript to connect the modem to your ISP. If you ISP uses a script to
connect its users then the login stuff will be heer aswell.
Yours Tony.
/*
* "The significant problems we face cannot be solved at the
* same level of thinking we were at when we created them."
* --Albert Einstein
*/
More information about the plug
mailing list