LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 08-18-2006, 10:57 AM   #1
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Rep: Reputation: 31
tsmbfs simple path name with spaces


new windows network here has screwed up my smb, and i forgot how to add a space to my path.
i keep thinking it's \\ or //

here's what i have or want to work:
example from rc.local
Code:
mount -tsmbfs //10.2.116.56/data/800 Engineering /mnt/bgtool blah blah
the windows share now has a space in. it's name is
" 800 engineering "

so the question is : how to get the space recognized?

Last edited by spooge; 08-18-2006 at 04:03 PM.
 
Old 08-19-2006, 03:58 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,189

Rep: Reputation: 49
try this
mount -tsmbfs "//10.2.116.56/data/800 Engineering" /mnt/bgtool blah blah
or
mount -tsmbfs //10.2.116.56/data/"800 Engineering" /mnt/bgtool blah blah
 
Old 08-22-2006, 08:10 AM   #3
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
does not work
the name of the drive on the M$ server is has a space in the name
Code:
800 engineering
there's something to put in my line for this
 
Old 08-29-2006, 08:21 AM   #4
spooge
Member
 
Registered: Nov 2001
Location: n chicago, IL. USA
Distribution: Slackware
Posts: 307

Original Poster
Rep: Reputation: 31
maybe i need to refraise this.

how do i add a space in comand line/path.
 
Old 08-31-2006, 12:32 AM   #5
gv_rajasekhar
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
mount -tsmbfs "//10.2.116.56/data/800 Engineering" /mnt/bgtool blah blah

"mounting shares with spaces in the name"

i encountered the same problem.its simple add "\" before the space

like
mount -tsmbfs "//10.2.116.56/data/800\ Engineering" /mnt/bgtool blah blah

if you are trying to mount from script it wont work directly as

by defult it takes only mount -tsmbfs "//10.2.116.56/data/800
for that you need to get that shared name in variable and put in " " e.g "$var"

sure this will solve this problem
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem - Samba path in fstab has spaces for my WindowsXP machine ylikone Linux - Networking 2 08-01-2006 09:02 AM
Simple PATH script Camino Linux - Newbie 8 02-07-2006 06:03 AM
how to expand wildcards in a path with spaces? sts Linux - General 1 11-12-2005 01:50 PM
using rsync - one of the folders in path has spaces??? jgruss Linux - Networking 10 07-07-2004 07:27 PM
simple g++ library path question harry349 Programming 2 05-31-2004 03:11 PM


All times are GMT -5. The time now is 01:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration