Re: Mount Volume with space in it
Re: Mount Volume with space in it
- Subject: Re: Mount Volume with space in it
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 26 Feb 2009 10:44:00 -0500
Quoted strings can have spaces in them, so using "quoted form" means
you don't have to worry about backslashes etc. It also correctly
deals with quoted quotes, e.g. turning "Don't quote the quote!" into "
'Don'\''t quote the quote!'".
On 2/26/09, David Wolfe <email@hidden> wrote:
> I would think that, at least in the shell script, it would be //
> servername/share\ name.
>
> In the shell, you escape a space by preceding it with a backslash.
>
> David
>
> On Feb 26, 2009, at 9:28 AM, email@hidden wrote:
>
>>
>> Hello all:
>>
>> I am trying to write a script to mount user home directories on a
>> 10.4 box. The home directory is an SMB share and the issue appears
>> to be that the share has a space in the share name.
>>
>> I have tried:
>>
>> mount volume"smb://servername/share name"
>> mount volume"smb://servername/share name"
>> mount volume"smb://servername/share\040name"
>> mount volume"smb://servername/'share name'"
>>
>>
>> do shell script("mount_smbfs -N //servername/share name")
>> do shell script("mount_smbfs -N //servername/share name")
>> do shell script("mount_smbfs -N //servername/share\040name")
>> do shell script("mount_smbfs -N //servername/'share name'")
>>
>> None of these have worked I am hoping that one of you can end my
>> pain where Google searching failed.
>>
>> Thanks,
>>
>> Charles Profitt
>> Sr. Network Technician
>> Vice President - NYS Ubuntu LoCo
>> BrainBench Certified - (Master)Microsoft Security | (Master)Storage
>> Area Networks Concepts | (Master)Microsoft Vista Desktop
>> Administration | (Master)Macintosh OS X 10.4 Desktop Administration
>> ----------------------------------------------------------------------
>> There are 10 types of people in the world: those who understand
>> binary, and those who don't.
>>
>>
>> Important Notice:
>> This communication, including any attachments, is intended only for
>> the use of the individual(s) or entity(s) to which it is addressed
>> and may contain information that is privileged, confidential and
>> exempt from disclosure under applicable law. If the reader of this
>> communication is not the intended recipient, you are hereby notified
>> that any dissemination, distribution or reproduction of any part of
>> this communication in any format is strictly prohibited. If you have
>> received this communication in error, please notify us immediately
>> by replying to this communication and deleting the original and any
>> automatically generated copies. Thank-you for your co-operation.
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list (applescript-
>> email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>
>
--
Sent from my mobile device
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden