[Sunhelp] WTMPX amd UTMPX maintenance scripts
Alex Shavkun
sae at news.dcn-asu.ru
Thu Oct 12 22:26:25 CDT 2000
----------
X-Sun-Data-Type: text
X-Sun-Content-Length: 260
X-Sun-Charset: ascii
> hi all...
>
> does anybody have any good scripts to trim wtmpx and
> utmpx periodically on 2.6?
>
> //regards
Bye.
Alex.
----------------------
Altai State University
Internet Center
e-mail: sae at asu.ru
tel : +7 3852 220202
fax : +7 3852 367423
----------
X-Sun-Data-Type: shell-script
X-Sun-Content-Length: 5145
X-Sun-Encoding-Info: uuencode
X-Sun-Data-Name: wtmp.trunc
X-Sun-Data-Description: wtmp.trunc
begin 600 wtmp.trunc
M(R$O8FEN+W-H"B,*(R!W=&UP("YT<G5N8V%T92 H+W5S<B]A9&TO=W1M<"YT
M<G5N8V%T92D at +0HC(" @(" @(" @=')U;F-A=&4@;VQD(')E8V]R9',@;V9F
M(&]F('=T;7 @86YD('=T;7!X"B,*(PHC(%1H:7,@<V-R:7!T('=A<R!W<FET
M=&5N(&)Y($1A=FED($QI;F1E<RP@;&EN9&5S0&YE=&-O;2YC;VT*(R H8RD@
M0V]P>7)I9VAT(#$Y.30 at 8GD@1&%V:60 at 3&EN9&5S+ at HC"B, at 4&5R;6ES<VEO
M;B!T;R!C;W!Y('1H:7,@<V-R:7!T(&%S('=A;G1E9"]N965D960@:7, at 9W)A
M;G1E9"P*(R!P<F]V:61E9"!T:&%T(&ET(&ES(&1I<W1R:6)U=&5D(&EN(&ET
M<R!%3E1)4D5462P@:6YC;'5D:6YG"B,@=&AI<R!C;W!Y<FEG:'0@;F]T:6-E
M(&%N9"!D:7-C;&%I;65R+"!A;&P at 8V]M;65N=',L(&%N9"!T:&4*(R!C;VUP
M;&5T92!S8W)I<'0N("!-;V1I9FEC871I;VYS(&UA>2!B92!M861E('1O('1H
M92!D969A=6QT"B,@=F%L=65S(&]F('1H92!435!$25(L(%=$25(L($M%15 @
M86YD($9)3$53('9A<FEA8FQE<RP at 8G5T(&%N>0HC(&]T:&5R(&UO9&EF:6-A
M=&EO;G,@=VEL;"!B92!C;VYS:61E<F5D(&$@=FEO;&%T:6]N(&]F('1H90HC
M(&-O<'ER:6=H="!A9W)E96UE;G0N"B,*(R!.;R!D:7-T<FEB=71I;VX@;V8@
M=&AI<R!S8W)I<'0@<VAO=6QD(&)E(&9O<B!A;GD@;6]N971A<GD@;W(*(R!C
M;VUP96YS871O<GD at 8VAA<F=E('=I=&AO=70@<')I;W(@=W)I='1E;B!C;VYS
M96YT(&]F('1H90HC(&%U=&AO<BX*(PHC(%1H92!D969A=6QT('9A;'5E<R!G
M:79E;B!W97)E('=R:71T96X at 9F]R('1H92!3;VQA<FES(#(N,PHC("A3=6Y/
M4R U+C,I(&]P97)A=&EN9R!S>7-T96TL(&%N9"!S:&]U;&0 at 8F4@=F5R:69I
M960 at 8F5F;W)E"B,@=7-E(&]N(&%N>2!O=&AE<B!O<&5R871I;F<@<WES=&5M
M+ at HC"B, at 3D\@1U5!4D%.5$5%($E3($=204Y4140 at 05, at 5$\@5$A%($)%2$%6
M24]2($]&(%1(25, at 4T-225!4+"!!3D0*(R!.3R!705)204Y462!32$%,3"!"
M12!)4U-5140L($E-4$Q)141/4B!/5$A%4E=)4T4L($)9(%1(12!!551(3U(L
M"B, at 0ED@4U5.($U)0U)/4UE35$5-4RP at 3U(@0ED at 04Y9($]42$52($E.1$E6
M241504P at 3U(@0T]-4$%.62X*(PHC(%5312!42$E3(%-#4DE05"!!5"!93U52
M($]73B!225-+(2$A(0HC"B,@*%1H;W5G:"!C;VUM96YT<R!F;W(@:6UP<F]V
M96UE;G0 at 87)E('=E;&-O;64 at 870@=&AE(&%B;W9E"B,@(&4M;6%I;"!A9&1R
M97-S+BD*(PHC($1I86=N;W-T:6-S. at HC(" @07)G=6UE;G1S. at HC(" @(" @
M(" @;W!T:6]N86P@(" @(" @("T@(" @(" @(&YU;6)E<B!O9B!R96-O<F1S
M('1O(&ME97 *(R @(" @(" @(" @(" @(" @(" @(" @("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!A<F=U;65N=#H*(R H;W)I9VEN86QL
M>2 V,"P@;W(@)#$@:68 at 87)G=6UE;G0 at 9VEV96XI"DM%15 ])'LQ.BTV,'T*
M"@IC87-E("(D2T5%4"(@:6X*(" @("TJ*0HC('-E="!S:VEP('-I>F4 at 9F]R
M(&YE9V%T:79E(&%R9W5M96YT<PI32TE0/6!E8VAO("1+1450('P at 8W5T("UC
M,BU@"CL["B @(" K*BD*(R!A8V-E<'0 at 97AP;&EC:70@<&]S:71I=F5S"DM%
M15 ]8&5C:&\@)$M%15 @?"!C=70 at +6,R+6 *=6YS970 at 4TM)4 H[.PH@(" @
M*BD*=6YS970 at 4TM)4 H[.PIE<V%C"@HC(&=E="!T:&4@<')O<&5R('9A;'5E
M<RP@<VEN8V4@)$9)3$53(&ES(&-U<W1O;6EZ86)L92X*(R!T:&5S92!L:6YE
M<R!G970@=&AE(&9I<G-T(&5N=')Y(&EN("1&24Q%4PI75$U01DE,13U at 96-H
M;R D1DE,15,@?"!C=70 at +60Z("UF,6 *5U1-4%-)6D4]8&5C:&\@)$9)3$53
M('P@<V5D("=S+UY;7CI=*CI<*%M>(%TJ7"DN*B0O7#$O)V *"D9)3$5325I%
M/6!L<R M;$P@)%=$25(O)%=435!&24Q%('P at 87=K("=[<')I;G0D-7TG8 HC
M(&]B=&%I;B!T:&5F:6QE<VEZ92!O9B!W('1M< HC(&9O<B!L871E<B!C86QC
M=6QA=&EO;G,*3E5-4D5#4SU at 97AP<B D1DE,15-)6D4 at +R D5U1-4%-)6D5@
M(" @(" @(" C(%-T;W)E('1H92!S:7IE(&]F('1H90HC('5T;7 @9FEL92P@
M:6X@<F5C;W)D<PI32TE0/21[4TM)4#HM8&5X<'(@)$Y535)%0U, at +2 D2T5%
M4&!]"B,@;G5M8F5R(&]F(')E8V]R9',@=&\@<VMI<"P at 8F%S960@;VX*(R D
M2T5%4"!V<RX@;G5M8F5R(&]F(')E8V]R9',@:6X@=&AE"B,@=W1M<"!F:6QE
M+ at II9B!;("132TE0("UL92 P(%T*=&AE;@H@(" @97AI=" Q(" @(" @(" @
M(" @(" @(",@;F]T:&EN9R!T;R!T<G5N8V%T90IF:0H*9F]R(%!!25(@:6X@
M)$9)3$53(" @(" @(" C(%!A:7(@;V8 at 9FEL96YA;64 at 86YD(&)L;V-K('-I
M>F4*9&\*(" @($9)3$4]8&5C:&\@)%!!25(@?"!C=70 at +60Z("UF,6 @(" @
M(" @(", at 97AT<F%C="!F:6QE;F%M90H@(" @24)3/6!E8VAO("1004E2('P@
M8W5T("UD.B M9C)@(" @(" @(" C(&5X=')A8W0@<F5C;W)D('-I>F4*8W @
M)%=$25(O)$9)3$4@)%1-4$1)4B\D1DE,12 @(" @(" @(R!C;W!Y(&]R:6=I
M;F%L('1O('1M< H*(" @(%-405154STD/PH@(" @8V%S92 D4U1!5%53(&EN
M"C I"B @(" [.PHJ*0H@(" @96-H;R B8W @97)R;W(@(R135$%455,L(&)A
M:6QI;F<@;W5T(&1U<FEN9R D1DE,12XB(#XF, at H@(" @97AI=" R"B @(" [
M.PH@(" @97-A8PH@(" @:68 at 6R D4TM)4" M9V4@)$Y535)%0U, at 70H@(" @
M=&AE;@H^("171$E2+R1&24Q%"B @96QS90ID9" @:68])%1-4$1)4B\D1DE,
M12!O9CTD5T1)4B\D1DE,12 @(&EB<STD24)3('-K:7 ])%-+25 @,CX at +V1E
M=B]N=6QL"@HC(&1O('1H92!T<G5N8V%T:6]N"B @("!F:0H*(" @(%-40515
M4STD/PH@(" @8V%S92 D4U1!5%53(&EN"C I"B @(" [.PHJ*0H@(" @96-H
M;R B9&0 at 97)R;W(C)%-405154RP at 8F%I;&EN9R!O=70 at 869T97(@)$9)3$4N
M(B ^)C(*(" @(&5X:70S"B @(" [.PH@(" @97-A8PIR;2 M9B D5$U01$E2
6+R1&24Q%"F1O;F4*"@IE>&ET(# N"@
end
More information about the SunHELP
mailing list