Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Append date/time stamp to logfile name (NT 4.0)

Append date/time stamp to logfile name (NT 4.0)

From: Speaks, Chuck W. <CSpeaks_at_Lithonia.com>
Date: Thu, 23 Aug 2001 09:58:00 -0700
Message-ID: <F001.003757CF.20010823100616@fatcity.com>

OS: NT 4.0

I have scheduled a query against a database that pipes results to a log file.

Ex. Select * from any_table; >logfile.txt

Since I need a trend on this query I need to keep the logfile names unique. Best case scenario is to append a date/time stamp to the logfile name as in 230820011200.txt (daymonthyeartime). Does anyone know how to do this with NT scripting? Any help would be greatly appreciated.

Thanks,

Chuck Speaks
Database Administrator
Lithonia Lighting
770-860-3450
http://www.lithonia.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Speaks, Chuck W.
  INET: CSpeaks_at_Lithonia.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Aug 23 2001 - 11:58:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US