It has to do with how quotes process escaped chars. I'd be curious what
happens if you swapped double quotes with singles. My money would be on
only needing \* instead of \\*.
I'm sure you can google quotes and escape chars and get some wiki or
stackoverflow post that'll explain why the single and double quotes do
different things. The fact it (sorta) works without any quotes is yet
another 'kind' of case when processing text.



--
Nate Fox
Sr Systems Engineer

o: 310.658.5775
m: 714.248.5350

Follow us @NEOGOV <http://twitter.com/NEOGOV> and on
Facebook<http://www.facebook.com/neogov>

NEOGOV <http://www.neogov.com/> is among the top fastest growing software
companies in the USA, recognized by Inc 500|5000, Deloitte Fast 500, and
the LA Business Journal. We are hiring!<http://www.neogov.com/#/company/careers>



On Wed, Jun 19, 2013 at 1:33 PM, Marvin Nipper <
[email protected]> wrote:

>  Thanks for the suggestion.  If I dump the quotes, it coughs up a
> hairball on the colon.  Also, to make the actual File statement less noisy
> in my email, I actually purged some intermediate directories, one of which
> had a space in the name, so I’m thinking that wouldn’t work out (as an
> unquoted string).  Bottom line, I think that I’m stuck with using the
> quotes.
>
>
>
> I had tried single-quotes earlier today, thinking that (per my
> understanding of the manual) that it would not process escape sequences,
> and in that test I just used “\*” (one backslash).  That didn’t work.  And,
> on another whim, just now, I retried that test, but used TWO backslashes,
> and that actually worked.
>
>
>
> So… again, in double-quotes, I seem to need \\\*, and in single-quotes I
> need \\*, but I’m still not understanding the nature of that syntactical
> situation.  And again, I’ve obviously “made this work”, but I’d really like
> to understand “why”.
>
>
>
> Thanks again for jumping in.
>
>
>
> *From:* Nate Fox [mailto:[email protected]]
> *Sent:* Wednesday, June 19, 2013 2:05 PM
>
> *To:* [email protected]
> *Subject:* Re: [nxlog-ce-users] `Include` with wildcards on windows?
>
>
>
> My guess is the quotes being the only thing different? Did you try
>
>        File E:\Data\LogFiles\Server\\*.AS4
>
> (notice no quotes and only 1 escaping slash)
>
>
>
>
> --
>
> Nate Fox
>
> Sr Systems Engineer
>
>
>
> o: 310.658.5775
>
> m: 714.248.5350
>
>
>
> Follow us @NEOGOV <http://twitter.com/NEOGOV> and on 
> Facebook<http://www.facebook.com/neogov>
>
>
>
> NEOGOV <http://www.neogov.com/> is among the top fastest growing software
> companies in the USA, recognized by Inc 500|5000, Deloitte Fast 500, and
> the LA Business Journal. We are 
> hiring!<http://www.neogov.com/#/company/careers>
>
>
>
>
>
> On Wed, Jun 19, 2013 at 11:49 AM, Marvin Nipper <
> [email protected]> wrote:
>
> Just following up on Nate’s previous thread….
>
>
>
> Again, with 2.4.1054, in Win Web Server 2K8 R2.
>
>
>
> I tried this:
>
>                 Module im_file
>
>                 File "E:\Data\LogFiles\Server\\*.AS4"
>
>
>
> But just as with a single slash, the double-slash syntax above generated
> the same “not found” error.  On a whim (and because I was desperate), I
> tried this:
>
>                 File "E:\Data\LogFiles\Server\\\*.AS4"
>
>
>
> … and “amazingly” (to me, anyway) that is what was required, in order to
> make this work.  Does that seem right to you?  (Because it didn’t seem like
> that should have worked.)  And if you decide that is “not right”, and you
> decide to “fix it” (such that the triple-slash will no longer work), please
> let me know, because I’m now running with that in several conf files.
>
>
>
> Thanks for your time and help.
>
>
>
> Marvin
>
>
>
> *From:* Nate Fox [mailto:[email protected]]
> *Sent:* Thursday, June 06, 2013 12:42 PM
> *To:* [email protected]
> *Subject:* Re: [nxlog-ce-users] `Include` with wildcards on windows?
>
>
>
> That worked. Thanks!
>
>
>
>
>
>
>
>
>
>
>
>
> --
>
> Nate Fox
>
> Sr Systems Engineer
>
>
>
> o: 310.658.5775
>
> m: 714.248.5350
>
>
>
> Follow us @NEOGOV <http://twitter.com/NEOGOV> and on 
> Facebook<http://www.facebook.com/neogov>
>
>
>
> NEOGOV <http://www.neogov.com/> is among the top fastest growing software
> companies in the USA, recognized by Inc 500|5000, Deloitte Fast 500, and
> the LA Business Journal. We are 
> hiring!<http://www.neogov.com/#/company/careers>
>
>
>
>
>
> On Thu, Jun 6, 2013 at 2:57 AM, Botond Botyanszki <[email protected]> wrote:
>
> Hi,
>
> Try this:
>  Include %ROOT%\conf\\*.nxlog.conf
>
> The reason is that any character after a \ is ignored so a simple "\*"
> isn't detected as a wildcard.
>
> People are running into the same issue with the File directive for
> im_file. This is what happens when the backslash is used both as an
> escape character and the directory separator.
> The possible solutions would be:
>  * Use something else as the escape character.
>    People are used to \, another escape character would be confusing.
>  * Don't use windows.
>    No comment.
>  * Use / instead of \ as the directory separator.
>    This is already supported for normal (non-wildcarded) paths on
>    windows. Unfortunately it doesn't work with wildcarded paths.
>    Windows users are used to the \ as the directory separator anyway, and
>    we can't disable the original function of the backslash.
> Obviously there is no easy way in this case, at least I'm not aware of
> any.
>
> Regards,
> Botond
>
>
>
> On Wed, 5 Jun 2013 14:52:14 -0700
> Nate Fox <[email protected]> wrote:
>
> > I'm running a fresh install of nxlog-ce 2.4.1054 on Win 2008 R2.
> > Per the manual here
> >
> http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html#config_includeI
> > believe I should be able to do:
> >
> > define ROOT C:\Program Files (x86)\nxlog
> > Include %ROOT%\conf\*.nxlog.conf
> >
> > But it gives me the following error:
> > nxlog failed to start: Invalid 'include' directive at C:\Program Files
> > (x86)\nxlog\conf\nxlog.conf:17
> > Failed to open config file C:\Program Files (x86)\nxlog\conf\*.nxlog.conf
> > The filename, directory name, or volume label syntax is incorrect.
> >
> > However, `Include %ROOT%\conf\sample.nxlog.conf` works fine.
> >
> > Am I doing something wrong or is this a bug?
> >
> > Full config files are here:
> > https://gist.github.com/natefox/a00105caa51fcfdea1aa
>
>
> ------------------------------------------------------------------------------
> How ServiceNow helps IT people transform IT departments:
> 1. A cloud service to automate IT design, transition and operations
> 2. Dashboards that offer high-level views of enterprise services
> 3. A single system of record for all IT processes
> http://p.sf.net/sfu/servicenow-d2d-j
> _______________________________________________
> nxlog-ce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
>
>
>
> The information transmitted, including any content in this communication
> is confidential, is intended only for the use of the intended recipient and
> is the property of The Western Union Company or its affiliates and
> subsidiaries. If you are not the intended recipient, you are hereby
> notified that any use of the information contained in or transmitted with
> the communication or dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please notify the Western Union sender immediately
> by replying to this message and delete the original message
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> nxlog-ce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
>
>
>
> The information transmitted, including any content in this communication
> is confidential, is intended only for the use of the intended recipient and
> is the property of The Western Union Company or its affiliates and
> subsidiaries. If you are not the intended recipient, you are hereby
> notified that any use of the information contained in or transmitted with
> the communication or dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, please notify the Western Union sender immediately
> by replying to this message and delete the original message
>
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
nxlog-ce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to