From owner-freebsd-questions@FreeBSD.ORG Sat Jun 28 06:58:11 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1797F37B401 for ; Sat, 28 Jun 2003 06:58:11 -0700 (PDT) Received: from mta10.adelphia.net (mta10.adelphia.net [64.8.50.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A12944017 for ; Sat, 28 Jun 2003 06:58:10 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com ([24.53.179.151]) by mta10.adelphia.net (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20030628135809.WQUI1347.mta10.adelphia.net@potentialtech.com>; Sat, 28 Jun 2003 09:58:09 -0400 Message-ID: <3EFD9EF1.20603@potentialtech.com> Date: Sat, 28 Jun 2003 09:58:09 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dragoncrest References: <5.2.0.9.2.20030628095709.00a05790@pop.voyager.net> In-Reply-To: <5.2.0.9.2.20030628095709.00a05790@pop.voyager.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.ORG Subject: Re: Write date/time to file? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jun 2003 13:58:11 -0000 Dragoncrest wrote: > HI all. As part of the ongoing development of a spam tracking > script I'm writing, I'm looking for tidbits of information on how to do > certain things. > > My question today is simple. What I need to know is what's the > command at the console to display date and time? I'm looking for an > output similar to this: Sat Jun 28 09:02:12 2003 > > I'm sure it's something incredibly simple, but I've looked and I > can't find anything that would logically create something like that. > Many thanks in advance. The command you're looking for is 'date'. -- Bill Moran Potential Technologies http://www.potentialtech.com