KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

What am I doing wrong with this file test date macro?

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
LordJezo



Joined: 09 Aug 2004
Posts: 28

PostPosted: Fri Sep 03, 2004 10:34 am    Post subject: What am I doing wrong with this file test date macro? Reply with quote

Trying to get a file check macro to pick up this type of format:

slhe_access.2004-09-02.log

From the directory:

E:\logs\slhe\

I have it set in the test to be:

E:\logs\slhe\slhe_access.%yyyy[-1d]%-%mm[-1d]%-%dd[-1d]%.log

(the [-1d] is because the date is always one day behind)

For some reason it is not translating the macro into the day and year. What am I doing wrong??? It keeps telling me the file is not there but I know it is, I am looking at it in the window right now. All of my other date macro type tests work, just not this one.

Any hints?


I just did some more checking into it.. everything works up until the day part of the macro. If I do:

E:\logs\slhe\slhe_access.%yyyy[-1d]%-%mm[-1d]%-02.log

it works fine but as soon as I add in the %dd[-1d]% part the test fails. Today is 03 so it should translate into 02.

Stumped.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Sep 03, 2004 11:14 am    Post subject: Reply with quote

Why you do not use E:\logs\slhe\slhe_access.%yyyy-mm-dd[-1d]%.log instead?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
LordJezo



Joined: 09 Aug 2004
Posts: 28

PostPosted: Fri Sep 03, 2004 12:09 pm    Post subject: Reply with quote

KS-Soft wrote:
Why you do not use E:\logs\slhe\slhe_access.%yyyy-mm-dd[-1d]%.log instead?

Regards
Alex


Didn't even think of that! I will try it after the weekend and let you know how it went.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index