/usr/share/doc/HOWTO/ja-html/ISP-Hookup-HOWTO-6.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>ISP-Hookup-HOWTO: $B@\B3<jB3$-$r<+F02=$9$kJ}K!(B</TITLE>
<LINK HREF="ISP-Hookup-HOWTO-7.html" REL=next>
<LINK HREF="ISP-Hookup-HOWTO-5.html" REL=previous>
<LINK HREF="ISP-Hookup-HOWTO.html#toc6" REL=contents>
</HEAD>
<BODY>
<A HREF="ISP-Hookup-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="ISP-Hookup-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="ISP-Hookup-HOWTO.html#toc6">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s6">6.</A> <A HREF="ISP-Hookup-HOWTO.html#toc6">$B@\B3<jB3$-$r<+F02=$9$kJ}K!(B</A></H2>
<P>$B%K%e!<%9$dEE;R%a!<%k$N<h$j07$$$r<+F02=$9$k$N$b!"(BLinux $B$G$J$i4JC1$G$9!#(B</P>
<P>$B:G=i$N$=$7$F$b$C$H$bBg@Z$J<jB3$-$O!"%W%m%P%$%@$H$N@\B3$r3NN)$9$k$?$a$N=q<0$G(B
$B$"$k(B/usr/lib/ppp/ppp-on $B$r:n@.$9$k$3$H$G$9!#$3$N=q<0$K$O!"<!$N0lJ8$7$+5-F~$5(B
$B$l$F$$$J$$$3$H$b$7$P$7$P$G$9!#(B</P>
<P>
<HR>
<PRE>
/usr/sbin/pppd
</PRE>
<HR>
</P>
<P>$B$5$i$K>\:Y$J@_Dj$O(B /etc/ppp/options $B$G9T$$$^$9!#(B</P>
<P>
<HR>
<PRE>
connect "/usr/lib/ppp/chat -v -f /etc/ppp/chatscript"
crtscts
modem
defaultroute
asyncmap 00000000
user dirk
/dev/modem 38400
</PRE>
<HR>
</P>
<P>$B@\B3$r=*$($k$K$O!"(B/usr/lib/ppp/ppp-off $B$rMQ$$$^$9!#(B</P>
<P>$B>e5-Fs$D$N=q<0$,$-$A$s$H5!G=$9$k$3$H$r3N$+$a$?$i!":#EY$OMM!9$J=hM}$r<u$1;}$D(B
$B=q<0$r:n@.$9$k$3$H$K$J$j$^$9!#EE;R%a!<%k$r<u?.$9$k$?$a$N=q<0$O$9$G$K>R2p$7$^(B
$B$7$?!#$3$N=q<0$,(B /home/dirk/pop $B$K$A$c$s$H$"$k$+$I$&$+$r3N$+$a$F$/$@$5$$!#(B</P>
<P>$BEE;R%a!<%k$r8r49$9$k$?$a$N=q<0$O(B /root/mail $B$KCV$-$^$9!#(B</P>
<P>
<HR>
<PRE>
#! /bin/sh
#
# $BEE;R%a%$%k$NAw<u(B
# 10 $BJ,4V$G;~4V@Z$l(B
TIMEOUT=600
DT=10
# $BEE;R%a!<%k$rAw?.(B:
sendmail -q &
# $BEE;R%a!<%k$r<u?.(B:
su dirk -c /home/dirk/pop
# sendmail $B$,=*N;$9$k$N$rBT$D(B:
t=0
while ! mailq | grep -q "Mail queue is empty"; do
t=$[$t+$DT]
if [ $t -gt $TIMEOUT ] ; then
echo "sendmail -q timeout ($TIMEOUT).."
exit 1
fi
sleep $DT
done
exit 0
</PRE>
<HR>
</P>
<P>$B%K%e!<%9$rAw<u$9$k$?$a$N=q<0$NCV>l=j$O(B <CODE>/usr/lib/news/news</CODE> $B$G$9!#(B</P>
<P>
<HR>
<PRE>
#!/bin/sh
#
# exchange news
# must be run as news:
cd /usr/lib/news
#$BAwIUMQ%P%C%A$r99?7(B (C News):
/usr/lib/newsbin/input/newsrun < /dev/null
#$B%K%e!<%9$N<x<u(B:
/usr/lib/newsbin/newsx acme news.acme.net
#$B<u?.%P%C%A$r99?7(B:
/usr/lib/newsbin/input/newsrun < /dev/null
</PRE>
<HR>
</P>
<P>$B$$$/$D$+$NItJ,$r$D$J$.$"$o$;$?=q<0$r(B <CODE> /root/news+mail </CODE>$B$KCV$/$3$H$b$G(B
$B$-(B
$B$^$9!#(B</P>
<P>
<HR>
<PRE>
#!/bin/sh
#
# exchange news and email
# must be run as root
#
if ! /usr/lib/ppp/ppp-on; then
exit 1
fi
trap "/usr/lib/ppp/ppp-off" 1 2 3 15
#exchange news+mail:
/root/mail &
su news -c ~news/news
wait
#disconnect..
/usr/lib/ppp/ppp-off
#update the incoming batch (C News):
su news -c /usr/lib/newsbin/input/newsrun < /dev/null &
exit 0
</PRE>
<HR>
</P>
<P>$B>e$NNc$OC1$K@\B3$r3NN)$9$k$@$1$N$b$N$G$9$,!"$3$l$r3HD%$7$F%K%e!<%9$dEE;R%a%$(B
$B%k$,$"$C$?>l9g$K$3$l$N<x<u$r9T$&$h$&$K$9$k$N$O4JC1$G$9!#(B<CODE>/root/news+mail.cond </CODE>$B$r8F$S=P$9$h$&$K$9$k$@$1$J$N$G$9!#$=$N:]!"Aw?.$9$k(B
$B%K%e!<%9MQ$N%9%W!<%k$r:G?72=$9$k$3$H$rK:$l$J$$$h$&$K!#(B</P>
<P>
<HR>
<PRE>
#!/bin/sh
#
# exchange news and email, only if outgoing news or mail
# (C News spool)
if [ -s /var/spool/news/out.going/acme/togo ] ||
! ( mailq | grep -q "Mail queue is empty"); then
/root/news+mail
fi
</PRE>
<HR>
</P>
<P>$B8e$O>e=R$N:n6H$r$$$D<B;\$9$k$N$+$r;XDj$9$k$@$1$G$9!#$3$l$K$O(B <CODE> crontab -e</CODE> $B$H$$$&L?Na$r%k!<%H$H$7$F<B9T$7$^$9!#0J2<$NNc$O!"%K%e!<%9$HEE;R%a%$%k$N(B
$B<x<u$rKhF|D+<7;~$K!"$=$N8e;M;~4V$4$H$KAw?.$N$_$r9T$&>l9g$N;XDj$G$9!#(B</P>
<P>
<HR>
<PRE>
00 7 * * * /root/news+mail
00 11,15,19,23 * * * /root/news+mail.cond
</PRE>
<HR>
</P>
<P>$B>e=R$N3FItIJ$rAH$_9g$o$;$kA0$K!"$=$l$>$l$r$7$C$+$j$H8!::$7$F$*$/$Y$-$G$9!#JL(B
$B$N%?%9%/$rIU$12C$($kI,MW$,@8$8$k$+$b$7$l$^$;$s!#(B($B;~9o$r0lCW$5$;$k(B
<CODE>ntpdate</CODE>$B!"<j85$G4IM}$7$F$$$k(B WWW $B!"(B FTP $B$r;H$C$F%W%m%P%$%@B&$N$=$l$r(B
$B<+F0E*$K99?7$9$k(B <CODE>make</CODE> $B$H(B <CODE>ftp</CODE> $B$J$I(B)</P>
<P>$BBeBX0F(B:$B8zN($K$h$C$F$O!"%W%m%;%9$r@n2<8~$-$KJQ99$9$k$3$H$b2DG=$G$9!#(BPPP $B%j%s(B
$B%/$r3NN)$9$kEY$K!"(B<CODE>/etc/ppp/ip-up</CODE> $B$r5/F0$9$l$P$$$$$N$G$9!#EE;R%a%$%k(B
$B$d%K%e!<%9$N<x<u$r3+;O$9$k$K$O2?$i$+$N(B magic $B$rIU$12C$($kI,MW$,$"$k$3$H$b$"(B
$B$k$G$7$g$&!#(B</P>
<P>$BBeBX0F(B:$B%M%C%H%o!<%/%H%i%U%#%C%/$,@.N)$7$F$$$k4V$J$i$$$D$G$b(B PPP $B@\B3$r<+F0E*(B
$B$K3NN)$9$k$3$H$,$G$-$^$9!#$3$l$OMM!9$J0UL#$GM%$l$?<jK!$G$9!#$7$+$7$J$,$i!"IQ(B
$BHK$K@\B3$,5/$3$i$J$$$h$&$K(B($BHqMQ$,9b$/$J$i$J$$$h$&$K(B)$B$9$k$K$OE*3N$J@_Dj$,I,MW(B
$B$G$9!#>\:Y$J>pJs$O2<5-$N$H$3$m$GF~<j$G$-$^$9!#(B</P>
<P>
<BLOCKQUOTE>
http://www.dna.lth.se/ erics/diald.html
</BLOCKQUOTE>
</P>
<P>diald $B$H$$$&%f!<%F%#%j%F%#$O0J2<$N$H$3$m$+$iF~<j$G$-$^$9(B:</P>
<P>
<BLOCKQUOTE>
ftp://sunsite.unc.edu/pub/Linux/system/network/serial/diald-0.16.tar.gz
</BLOCKQUOTE>
</P>
<P>$B$3$N>l=j$K$O!"(BPPP $B@\B3$K4X$9$kB>$N>pJs$b=8$a$i$l$F$$$^$9!#(B</P>
<HR>
<A HREF="ISP-Hookup-HOWTO-7.html">$B<!$N%Z!<%8(B</A>
<A HREF="ISP-Hookup-HOWTO-5.html">$BA0$N%Z!<%8(B</A>
<A HREF="ISP-Hookup-HOWTO.html#toc6">$BL\<!$X(B</A>
</BODY>
</HTML>
|