RE: Logs from WinNT/2k and Eventlog.pl

From: Stuart Fox (DSL AK) (StuartF@datacom.co.nz)
Date: 03/12/02


From: "Stuart Fox (DSL AK)" <StuartF@datacom.co.nz>
To: "'alex.elger@micronage.com'" <alex.elger@micronage.com>, "Mendoza Bazan, Luis - (Per)" <luis.mendoza@attla.com>
Date: Wed, 13 Mar 2002 09:50:53 +1300

Remember that using date by itself will prompt you for the new date, so it
will sit waiting for console input. You need to use date /t >> textfile.txt
to bypass this.

Cheers

Stu

> -----Original Message-----
> From: Alex Elger [mailto:alex.elger@micronage.com]
> Sent: Tuesday, 12 March 2002 10:56 p.m.
> To: Mendoza Bazan, Luis - (Per)
> Cc: focus-ms@securityfocus.com
> Subject: RE: Logs from WinNT/2k and Eventlog.pl
>
>
> Are you outputting them to a text file?
> if so you could do
> date>> textfile.txt
> at the end of your script (Via a batch file)
> So..
>
> REM Batch Start
> eventlog.pl
> date>> textfile.txt
> REM Batch End
>
> The reason that you use the >> rather than the > is because
> ">>" appends to the last line of the text file. Use the "at"
> or scheduler service to schedule the automated log dump. Hope
> that this is of some help Alex Elger Micronage
> alex.elger@micronage.com
>