Hi ! Any of you had to monitor logs on a windows box where the file is located in a directory with spaces in ?
bb-msgs.pl version 1.1 breaks if I try.
/Thomas
Thomas wrote:
Hi ! Any of you had to monitor logs on a windows box where the file is located in a directory with spaces in ?
bb-msgs.pl version 1.1 breaks if I try.
/Thomas
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Have you tried taking out the space ? Convert the folder to dos 8.3 format so for eg Program Files ends up being progra~1 Everything gets truncated to 6 chars + ~1. I know its Perl and not dos but it cant hurt to try :)
Allan
Yes this is what I ended up doing. I noticed that if I do a dir /X then the 8.3 format is shown, but then I ran into the next problem and this is wildcard filnames ie. syslog*.log as the logs are named with the date in the filename. This require a total rewrite of the bb-msgs.pl script as far as I could see.
So I told the managers that this was not possible given the timeframe on a windows box. :-( no happy about it.
Thanks for replying.
/Thomas
ZanDAhaR wrote:
Thomas wrote:
Hi ! Any of you had to monitor logs on a windows box where the file is located in a directory with spaces in ?
bb-msgs.pl version 1.1 breaks if I try.
/Thomas
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Have you tried taking out the space ? Convert the folder to dos 8.3 format so for eg Program Files ends up being progra~1 Everything gets truncated to 6 chars + ~1. I know its Perl and not dos but it cant hurt to try :)
Allan
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Thomas wrote:
Yes this is what I ended up doing. I noticed that if I do a dir /X then the 8.3 format is shown, but then I ran into the next problem and this is wildcard filnames ie. syslog*.log as the logs are named with the date in the filename. This require a total rewrite of the bb-msgs.pl script as far as I could see.
So I told the managers that this was not possible given the timeframe on a windows box. :-( no happy about it.
Thanks for replying.
/Thomas
ZanDAhaR wrote:
Thomas wrote:
Hi ! Any of you had to monitor logs on a windows box where the file is located in a directory with spaces in ?
bb-msgs.pl version 1.1 breaks if I try.
/Thomas
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Have you tried taking out the space ? Convert the folder to dos 8.3 format so for eg Program Files ends up being progra~1 Everything gets truncated to 6 chars + ~1. I know its Perl and not dos but it cant hurt to try :)
Allan
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I'm sure someone else could help you out with the perl expression but I think maybe it should be %syslog* or something. I'm not a perl junkie so dont take my word as gospel :)
HTH
Allan
participants (2)
-
allan@zandahar.net
-
tlp-hobbit@holme-pedersen.dk