On Friday 31 May 2002 11:14, Rajesh wrote: > I am starting sendmail and than fetchmail in my /etc/ppp/ip-up.local > > I will check this out by commenting those lines when the remote user dials > in. > > Is there any so that ip-up.local is executed only when you connect to the > net and not when a remote user dials in ?
Rajesh, PPP, as its name implies, is peer to peer. There is no distinction made which end is the server or which end is the client. pppd does not know whether you are connecting to the net, or a remote user is logging in. What you can do is to read man pppd(8). The ip-up script is passed a lot of options. If you are using 192.168.111.1 as your IP address for the dial-in interfaces, you can try something like this in your ip-up.local: if [ $4 = "192.168.111.1" ]; then # Dial in user specific commands go here else # Internet connection specific commands go here endif (Please check if it is indeed $4 in your pppd man page). Binand _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
