From owner-freebsd-questions@FreeBSD.ORG Sat Jun 28 07:31:46 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 4A64B37B401 for ; Sat, 28 Jun 2003 07:31:46 -0700 (PDT) Received: from caverns.us.eu.org (ip68-12-68-221.ok.ok.cox.net [68.12.68.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6AA543FD7 for ; Sat, 28 Jun 2003 07:31:44 -0700 (PDT) (envelope-from micheal@cancercare.net) Received: from dredster (dredster.caverns.lan [192.168.1.2]) by caverns.us.eu.org (8.12.9/8.12.0) with SMTP id h5SEVhXX018043; Sat, 28 Jun 2003 09:31:44 -0500 (CDT) (envelope-from micheal@cancercare.net) Message-ID: <016d01c33d82$0b31ed10$0201a8c0@dredster> From: "Micheal Patterson" To: , "Dragoncrest" References: <5.2.0.9.2.20030628095709.00a05790@pop.voyager.net> Date: Sat, 28 Jun 2003 09:31:47 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 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 14:31:46 -0000 ----- Original Message ----- From: "Dragoncrest" To: Sent: Saturday, June 28, 2003 9:01 AM Subject: Write date/time to file? > 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. > Dragoncrest, I'm assuming that you want this information to either be part of the file name or echo'd into a file itself at the beginning. If so, try "date". micheal@caverns.us.eu.org:/usr/local/home/micheal/>date Sat Jun 28 09:05:38 CDT 2003 Hope it helps. -- Micheal Patterson Network Administration Cancer Care Network 405-733-2230