 |
Chub Newbie
Joined: 30 Nov 2000 Posts: 5
|
Posted: Fri Jan 18, 2002 12:29 am
Date Logging |
Hi,
Just curious how I would go about logging files by the date. I.e. 'atconnect' would check the date, and begin to log a file called "Log of September 1, 2002". If no such file existed, it would create one, and if it did, it would append. Not really too well-versed in Zmud, but any help would work. Thanks! |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: Fri Jan 18, 2002 2:04 am |
Add this line to atconnect:
#LOG %concat("Log of ",%time("mmmmmmmmmm dd, yyyy"),".txt")
And to atdisconnect add this line:
#LOG
Optionally....
Sadly it would be far to much work for me to write...or maybe not, add this line to atconnect:
StartLog
Create the alias:
#AL StartLog {#LOG %concat("Log of ",%time("mmmmmmmmmm dd, yyyy"),".txt");#EXEC %expand(#ALARM LoggingTimer {+%eval(86400-(%secs/1000))} {StartLog})}
Add these 2 to atdisconnect:
#LOG
#UNTRIGGER LoggingTimer
Now it will also close the log aat midnight aand start a new one. |
|
|
 |
Chub Newbie
Joined: 30 Nov 2000 Posts: 5
|
Posted: Fri Jan 18, 2002 2:18 am |
Thanks Vijilante, it worked wonderfully. I appreciate the help. :)
|
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|