[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] cron error on splitlogs help needed



On 09 Jul 2001 18:07:56 -0400, Erin wrote:
> (when I manually ran the file, I simply ran splitlogs.pl)  When it runs
> automatically, I'm not sure how it is being called.
> 
> Here is the directory listing:
> 
> [root@ns1 cron.quarter-daily]# ls -al
> total 6
> drwxr-xr-x   2 root     root         1024 May 11 21:17 .
> drwxr-xr-x  37 root     root         4096 Jul  9 04:05 ..
> -rwx------   2 root     root          379 Jan 24 16:24 poprelayd.custodiat
> lrwxrwxrwx   1 root     root           26 Apr 24 21:40 splitlogs.pl ->
> /usr/local/sbin/split_logs

Ahh.. split_logs expects an argument of what type of log file it is, as
well as supplying the logfile from STDIN.  You need to create a shell
script that calls split_logs with the correct arguments.

--cut here--
#!/bin/sh

/usr/local/sbin/split_logs web < /var/log/httpd/access
--cut here--

That will do the trick.  Make sure it is executable. (chmod 775
<filename>).

Jeff
-- 
Jeff Lovell
Sun Microsystems Inc.