[nycbug-talk] savelogs

Dru dlavigne6
Thu Feb 24 10:45:06 EST 2005



On Thu, 24 Feb 2005, Brad Schonhorst wrote:

>> Anyone have any idea what I'm missing here? I'm using sysutils/savelogs on 
>> a FreeBSD 5.2.1 system to rotate and compress logs. Works beautifully from 
>> the command line whether I'm in the tcsh or the sh shell.
>> 
>> However, as soon as I script it (Bourne shell script, simply has the same 
>> command I run at the command line), it runs TWICE, resulting in an empty 
>> log file.
>> 
>> 
>
> Hey Dru-
>
> When you say script it, do you mean script it and run it from cron or are you 
> just testing the script right now?

Testing the script. It's real simple (simply the commands I run at the 
command line:)

#!/bin/sh
cd /var/log
/usr/local/bin/savelogs --config=/usr/local/etc/savelogs.conf messages
/usr/local/bin/savelogs --config=/usr/local/etc/savelogs.conf maillog

Dru





More information about the talk mailing list