Date: Sat, 18 Apr 1998 06:51:13 -0600 From: Alejandro Galindo <agalindo@servidor.exsocom.com.mx> To: freebsd-questions@FreeBSD.ORG Subject: newsyslog process Message-ID: <1.5.4.32.19980418125113.00714334@exsocom.com.mx>
next in thread | raw e-mail | index | archive | help
Hellow, i need to configure a separate newsyslog process for the next task: every day 6 of the week i need to run the newsyslog for rotate the file wtmp in the cron tab file i put the next line ---------cut here--------- 0 0 * * 6 root /usr/local/bin/mynewsyslog ---------cut here--------- the mynewsyslog file are the next: -------cut here--------- #!/usr/local/bin/perl # Rotate the wtmp actual file system("/usr/sbin/newsyslog -f /etc/newsyslog.wtmp"); -------cut here--------- and the newsyslog.wtmp file is: ------cut here---------- # configuration file for newsyslog # $Id: newsyslog.conf,v 1.6.2.1 1997/02/05 14:18:24 mpp Exp $ # # logfilename owner.group mode count size time [ZB] /var/log/wtmp 664 7 * 0 ZB ------cut here----------- i need to rotate the file exactly at 00:00 hrs in the day 6 of the week, and in the last file i specify the time = 0 (0 hrs). The problem is becouse this dont work. do you know a form for do that exactly in the time that i need (0 hrs of day 6 of the week)? In the original file i only put an # in the wtmp line; the others files rotate are working well. thanks in advanced Saludos Alejandro ---------------------------------------------------------------------------- | , , | | /( )` | | \ \___ / | | | /- _ `-/ ' | | (/\/ \ \ /\ | | ExSoCom Dgo. MEXICO / / | ` \ | | O O ) / | | | `-^--'`< ' | | (_.) _ ) / | | Alejandro Galindo Chairez `.___/` / | | Tel: (52 18) 179177 `-----' / | | Fax: (52 18) 179177 <----. __ / __ \ | | <----|====O)))==) \) /==== | | e-mail agalindo@exsocom.com.mx <----' `--' `.__,' \ | | | | | | http://www.exsocom.com.mx \ / /\| | ______( (_ / \______/ | | ,' ,-----' | | | a FreeBSD user `--{__________) | ---------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1.5.4.32.19980418125113.00714334>