BBS:      TELESC.NET.BR
Assunto:  Scheduled events?
De:       Stas Mishchenkov
Data:     Sun, 31 May 2026 02:08:24 +0300
-----------------------------------------------------------
Hi Mike!

13 Apr 26 08:08, Mike Powell -> Nil A:


 MP>> Like, stop taking calls (or exit) and run this script, then restart?

 NA>> That I can't understand your use-case, but sounds like a DOS shit.

 MP> I want to roll the log while it is not taking calls.  Makes it easier to
 MP> analize if calls are not cut in half.  Not a "DOS shit" use-case. 

[02:18:16 brorabbit etc]$ sudo grep -i archlog.sh /etc/crontab
58 23 * * *  fido /home/fido/bin/archlog.sh

---------------------------------
[02:14:30 brorabbit]$ cat ./archlog.sh
#!/bin/sh

/home/fido/perl/bls.pl -c /home/fido/etc/bls.conf -l /home/fido/logs/bls.log

arcname=$(date +%F)
zip -mj9q /home/fido/logs/arc/$arcname /home/fido/logs/*.log
---------------------------------


https://brorabbit.g0x.ru/files/perl/bls.pl Creates stat files from the binkd.log file.

Have nice nights.
       Stas Mishchenkov.

--- ,      ,   ?
 * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/5858)

-----------------------------------------------------------
[Voltar]