From owner-freebsd-questions@FreeBSD.ORG Thu Jan 31 08:49:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4C1716A418 for ; Thu, 31 Jan 2008 08:49:25 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.184]) by mx1.freebsd.org (Postfix) with ESMTP id 5F10113C468 for ; Thu, 31 Jan 2008 08:49:25 +0000 (UTC) (envelope-from zszalbot@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so565127fka.11 for ; Thu, 31 Jan 2008 00:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=osFbX7Ix9qIv7xYyN0fNzYjRlw8WFWAzOaUZZHxuzq0=; b=Tv2iyKGX9+Pq69SJFpTIqL1WRK0ygE39c8JWfYPZ9AEfVRU0bsdC+0lSycCu9gQdQkgKQ3aUS08qmso2Yku9zQ8DjG0W81NxAnpQJKNhX8Hdp3B79Ykif4bhtfhEaXbcTQNy490MhmpRi8XMXYQ7rz8Gv3hlMYj69zyI2GJb9DY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LFqRwZfxatKrY5paLEIzEXkKs8u8NGb4+pkNVAmKLLeXlNcnnQ79TqBm3G7+TTEf/z1k3jp+M2ZVSMYjmR17tuNcA4+IwbSE4/AEMG9ZNMLHD+TQnyERhSxcssmBXBV5N6reBNmz0Fefs9JI55PMF42GrGNcHh50EuYIxAp8qDU= Received: by 10.78.123.4 with SMTP id v4mr2803144huc.18.1201769363829; Thu, 31 Jan 2008 00:49:23 -0800 (PST) Received: by 10.78.151.2 with HTTP; Thu, 31 Jan 2008 00:49:23 -0800 (PST) Message-ID: <94136a2c0801310049k22d7a890kac8a2482ac49333c@mail.gmail.com> Date: Thu, 31 Jan 2008 09:49:23 +0100 From: "Zbigniew Szalbot" To: freebsd-questions MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: cron to attach a gz file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 08:49:25 -0000 Hello, I know I can use mail -s "logfile " < /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? Also, is it possible to actually transfer the log file by ftp using cron? If so, would anyone be willing to share how to set it up? Many thanks in advance! Zbigniew Szalbot