Making a shell script...

Ian Barnes ian at cerebellum.za.net
Mon May 12 11:44:43 PDT 2003


> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Xpression
> Sent: 12 May 2003 08:33 PM
> To: FreeBSD-questions
> Subject: Making a shell script...
>
>
> Hi guys:
>             I try to make a script to rotate some log files every month,
> file must be appear like this   (Month-Year.tgz)...the question
> is: how can
> I compress all files in a sub-dir that contains many sub-dirs without
> compress sub-dirs too...sample:
>
> /mydir/one-dir
>           /another-one
>           file1
>           file2
>           file3
>
> I try to tar & compress file[1..3] without compress /one-dir, /another-one
> directories...I'm already looked at man pages without a response...thanks
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
>

Hi,

Stupid question: Why dont you use newsyslog ? /etc/newsyslog

#man newsyslog

Ian



More information about the freebsd-questions mailing list