On Fri, May 31, 2002 at 11:45:41AM +0100, Binand Raj S. wrote: >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.
Yep. When pppd is started those scripts from /etc/ppp are executed. > >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). Thanks Binand. Will check the docs of pppd and do the needful. Peace -- Rajesh : ####[ Linux One Stanza Tip (LOST) ]########################### Sub : DOS to Unix conversion (#5) LOST #217 In vim editor, it is just a matter of setting file-format (ff) The steps are : a) vim dosfile.txt b) :set ff=unix c) :wq ####<[EMAIL PROTECTED]>##################################### : _______________________________________________________________ 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
