Off topic for this list, but I would suggest investing in the PDK and using perlservice once you have found a way to interface with the com port. Alternativly, you could break it into two parts, with one part doing the reading and writing to the log file and the other part just checking the time and rotating the filename once a day. I would suggest something like:
script one ( either running all the time as a script or service): check registry or file every x seconds and use this to generate the log file script two ( either running all the time as a script or service): runs every x seconds to see if the day has changed. If it has, change the registry or file used by script one. or, if you are really bold, just create a Pipe from one script to another that is always running and constantly feed the filename (new or same depending on if it changed) to the reader script. Joe Frazier, Jr. Technical Support Engineer Peopleclick Service Support Tel: +1-800-841-2365 E-Mail: mailto:[EMAIL PROTECTED] > -----Original Message----- > From: Peter Eisengrein [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 19, 2003 11:35 AM > To: '[EMAIL PROTECTED]'; > perl-win32-gui-users@lists.sourceforge.net > Subject: RE: [perl-win32-gui-users] COM port logger > > > Thanks for the tip. Still not quite what I'm after. I > currently use WRQ's > Reflections to connect and log the info. I wrote a server > that runs on that > machine to hand off the data in the log file to other > systems. However, this > requires someone to manually change the log file each day > and, well, simple > as that sounds, there are problems with incorrectly spelled > log filenames, > missed rotations, etc. > > So, I am looking for a way to connect, listen, log, *AND* > rotate the files > at the same time each day. Preferrably a Perl-ish way so that > I can perhaps > integrate it into the server. > > Thanks. > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 19, 2003 10:53 AM > To: perl-win32-gui-users@lists.sourceforge.net; > [EMAIL PROTECTED] > Subject: Re: [perl-win32-gui-users] COM port logger > > > portmon from sysinternals.com > > -Dave > > > ------------------------------------------------------- > This SF.net email is sponsored by: SlickEdit Inc. Develop an edge. > The most comprehensive and flexible code editor you can use. > Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial. > www.slickedit.com/sourceforge > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >