Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-22 Thread bartels
On 12/22/2012 03:30 PM, Andrey Repin wrote: More importantly, is it possible to mount a network share, using cygwin, so that it becomes visible/available in explorer? >> Again, no mounting is required. Open up Windows Explorer and type in the UNC (\\\) and there you are! > It would be that

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-22 Thread bartels
On 12/22/2012 03:25 PM, Andrey Repin wrote: > No reason, really, other than the fact that Windoze forces us to access physical storage devices via the silly drive letters . What? Where did you get this impression? This is not true for 18 years at least. That is interesting. How do I use cyg

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-22 Thread Andrey Repin
Greetings, bartels! >> BTW: Why the insistence on mapping it to a drive letter? Everybody always >> does that and I don't understand why. Drive letters change. Some >> people hard code 'em in their scripts. This is a recipe for errors. Other >> people say sometimes that some Windows apps can't w

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-22 Thread Andrey Repin
Greetings, Andrew DeFaria! > BTW: Why the insistence on mapping it to a drive letter? Everybody > always does that and I don't understand why. Drive letters change. Some > people hard code 'em in their scripts. This is a recipe for errors. > Other people say sometimes that some Windows apps can'

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-22 Thread Andrey Repin
Greetings, bartels! >> $ # \'s doubled because bash swallows them and net use requires them. >> $ net use \\share > Okay, I did not know the letter could be ommitted. >>> More importantly, is it possible to mount a network share, using cygwin, so >>> that it becomes visible/available in expl

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-22 Thread bartels
On 12/22/2012 12:27 AM, Andrew DeFaria wrote: Or you can just do $ # \'s doubled because bash swallows them and net use requires them. $ net use \\share Okay, I did not know the letter could be ommitted. More importantly, is it possible to mount a network share, using cygwin, so that it

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Andrew DeFaria
On 12/21/2012 10:51 AM, bartels wrote: On 12/21/2012 07:30 PM, Andrew DeFaria wrote: On 12/21/2012 10:11 AM, bartels wrote: So where can I find strace? Where did you look? $ type strace strace is /bin/strace strace is one of my favourite toys on linux. Somehow, I never located it on cygwin.

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 07:23 PM, Corinna Vinschen wrote: > So where can I find strace? In /bin. I don't suppose they come any easier :) Thanks. - bartels -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 07:30 PM, Andrew DeFaria wrote: On 12/21/2012 10:11 AM, bartels wrote: So where can I find strace? Where did you look? $ type strace strace is /bin/strace strace is one of my favourite toys on linux. Somehow, I never located it on cygwin. Never just typed in the magic word :) T

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Andrew DeFaria
On 12/21/2012 10:11 AM, bartels wrote: So where can I find strace? Where did you look? $ type strace strace is /bin/strace BTW: Why the insistence on mapping it to a drive letter? Everybody always does that and I don't understand why. Drive letters change. Some people hard code 'em in their

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Corinna Vinschen
On Dec 21 19:11, bartels wrote: > On 12/21/2012 06:19 PM, Corinna Vinschen wrote: > >On Dec 21 18:01, bartels wrote: > >>On 12/21/2012 05:47 PM, Corinna Vinschen wrote: > >>>On Dec 21 17:20, bartels wrote: > $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" > /user:"bartels

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 06:19 PM, Corinna Vinschen wrote: On Dec 21 18:01, bartels wrote: On 12/21/2012 05:47 PM, Corinna Vinschen wrote: On Dec 21 17:20, bartels wrote: $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: c

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Corinna Vinschen
On Dec 21 18:01, bartels wrote: > On 12/21/2012 05:47 PM, Corinna Vinschen wrote: > >On Dec 21 17:20, bartels wrote: > >>$ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" > >>/user:"bartels" > >>The command completed successfully. > >> > >>$ ls q:/ > >>ls: cannot access q:/: Input/

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread René Berber
On 12/21/2012 11:15 AM, marco atzeri wrote: [snip] it should be the usual "\" ls "//macau/X32\ Backup-4\(WD\)/" Without the quotes: $ ls //HPMediaVault/Backup X32 Backup-4(WD)/ $ ll //HPMediaVault/Backup/X32\ Backup-4\(WD\)/ total 0 drwxrwxrwx 1 Unix Group\nobody 0 Dec 21 11:

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread marco atzeri
On 12/21/2012 6:11 PM, bartels wrote: Just did that. Same difference: $ ls "//macau/X32 Backup-4(WD)/" ls: cannot access //macau/X32 Backup-4(WD)/: Input/output error Is there a set of escape characters for spaces, parens and whatnot? - bartels it should be the usual "\" ls "//macau/X32\

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 05:47 PM, René Berber wrote: On 12/21/2012 10:20 AM, bartels wrote: [snip] $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: cannot access q:/: Input/output error Have you tried the correct way? ls

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
On 12/21/2012 05:47 PM, Corinna Vinschen wrote: On Dec 21 17:20, bartels wrote: $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: cannot access q:/: Input/output error Please don't use DOS paths. Use POSIX paths

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread Corinna Vinschen
On Dec 21 17:20, bartels wrote: > Hello Cygwin, > > I am experiencing problems with spaces and/or parentheses in samba share > names. > Changing the share name is not an option, because they are physical drives, > connected to a mac. > > The following works fine from a dos box, and also from th

Re: trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread René Berber
On 12/21/2012 10:20 AM, bartels wrote: [snip] $ net use Q: "$(cygpath -w '//macau/X32 Backup-4(WD)')" "bartels" /user:"bartels" The command completed successfully. $ ls q:/ ls: cannot access q:/: Input/output error Have you tried the correct way? ls /cygdrive/q or the alternative Network sha

trouble accessing samba shares with spaces and/or parentheses

2012-12-21 Thread bartels
Hello Cygwin, I am experiencing problems with spaces and/or parentheses in samba share names. Changing the share name is not an option, because they are physical drives, connected to a mac. The following works fine from a dos box, and also from the gui with 'Map network drive', but fails miser