On Fri, 7 May 1999, Flippie Spies wrote:

> Why if I want to use smbclient I have to specify \\\\host\\\service.
> If I try \\host\service I get the following error:
> \hostservice: Not enough '\' characters in service
>  ^^^^^^^^^^^
> It does not even put "\" between host and service.

Because backslash (\) character is used to write special characters, when
used before other characters than set what creates special chars, is
ignored.

So when you need this backslash, you have to double it (\\ means \
character). See any C language manual (it is similar).

> The strange thing is \\\\host\\\service works.
> 
> WHY

see:
text :\\ \\ host \\ \s ervice
means:\  \  host \  s  ervice
(ignore spaces, used to better reading)
text :\\\\host\\\service
means:\\host\service
(only for a few characters used as a first character of service name. \n
does NOT means n, but CR (or CR LF under DOS); at some characters it works
good)...

                                       +-----------------------------------+
                                       |                                   |
                                       |            Radim HABALA           |
                                       |                                   |
                                       |   e-mail:   [EMAIL PROTECTED]    |
                                       |                                   |
                                       |   Englisova 13, OPAVA,  746 01    |
                                       |      Czech Republic (Europe)      |
                                       |                                   |
                                       |   tel :  (0653)   21 46 34        |
                                       |                                   |
                                       +-----------------------------------+


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to