| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | how would you approach this? |
Hi Paul,
On Tue 2036-Dec-16 12:03, Paul Quinn (3:640/384) wrote to Richard Webb:
RW> THe objective: text Files are combined which contain data
RW> entries. Every 12 hours the file needs to be rebuild from
RW> files containing data received or entered during the last 48 hours.
RW> Which means, we kill files older than 48 hours, rebuild.
RW> AS earlier noted, this task would run twice a day.
PQ> Which part of the process works already (scheduling, rebuild -or-
PQ> kill), Richard? :-)
scheduling of course works.
At midnight and noon gmt scheduling in place for other tasks as well. Data
will be coming in periodically for these text files, and we want to purge
the oldest.
PQ> Killing off old files is relatively easy. I do something similar in
PQ> my toss batch for the Fidonews file echo:
YEp, I"m cogitating on a couple of approaches now, not quite sure how
I want to go about it.
NEW data would be written to today's. nExt event, a new
"current" file is the one appended.
PQ> Mind you, it's made a little easier by knowing the _number_ of files
PQ> involved. This method of file/filename manipulation with DIR & NSET
PQ> could also be used for the rebuild as well, I guess, if a rebuild is
PQ> done whenever a new (single) data file is received/generated.
close. WE'd have, every 12 hours a new current file being
appended whenever data received.
DAta in this case is information on vessels offshore.
The system receives the information, when found the batch
invoked uses sed to grab all data and none of the header
stuff to the current file.
NExt scheduled event, new current file, of course. Purge
the file with data over 48 hours old.
WHen another user requests this info by email, or I want to
have a look at it, all files are combined into one text
file.
PQ> Is this close to what you're after?
SEems to be. Any thought after a bit more description?
Regards,
Richard
--- timEd 1.10.y2k+
* Origin: Radio REscue net operations BBS (1:116/901)SEEN-BY: 10/1 3 34/999 90/1 120/228 123/500 140/1 222/2 226/0 249/303 250/306 SEEN-BY: 261/20 38 100 1381 1404 1406 1410 1418 266/1413 280/1027 320/119 SEEN-BY: 393/68 396/45 633/104 260 267 285 640/954 690/682 734 712/0 104 313 SEEN-BY: 712/848 800/432 801/161 189 2222/700 2320/100 105 200 2905/0 @PATH: 116/901 3634/12 123/500 261/38 633/260 712/848 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.