LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2004, 02:15 AM   #1
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Rep: Reputation: 30
Window share access through linux (SAMBA)


I have configured SAMBA in between mandrake 9.2 and windows 98,

i would like to access a doc file named "yoyo telcnologies file.doc"

how can i use get command to access the window share file through command line of linux box

where can i find help for samba commands help (such get, put ......)




-jack


Last edited by emailssent; 09-18-2004 at 03:13 AM.
 
Old 09-18-2004, 04:58 AM   #2
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
If you want to move it you have to access it like:

mv yoyo\ telcnologies\ file.doc /place/you/want/it/

I'm not sure I understand the question'
 
Old 09-18-2004, 05:44 AM   #3
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
@micxz

it is true that u have not understood the question.

i don't want to move the file. i want to copy the windows share file to linux box through SAMBA server.


-jack
 
Old 09-18-2004, 02:32 PM   #4
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
smbclient
smbmount

Try "smb[TAB][TAB]"

Hints' Sorry I think I understand now'
 
Old 09-18-2004, 10:56 PM   #5
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
@micxz

I think still u have not understood the questions. So, plz. read carefully and try to help me to solve this query.

I already used smbclient to access windows share by providing this comand

#smbclient //c5m9x2/C

then it shows this and asked me for password i provided that

added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
Password:


then i cd to directory in which my file is located

smb: \>cd emailssent


then i use ls command to show the files

smb: \emailssent\>ls

yoyo telcnologies file.doc A 266424 Sat Sep 18 10:56:36 2004


now i want to copy this file through command line itself to linux box.


So, what command should i type to copy this file, i guess get is used but how ,i tried "get yoyo\ telconologies\ file.doc" but it doesn't worked.
 
Old 09-18-2004, 11:28 PM   #6
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
Ah so sorry.

mget
 
Old 09-19-2004, 12:10 AM   #7
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
what mget ,

how can we use it ,

i tried

smb: \emailssent\> mget yoyo\ Tecnologies\ file.doc
ERRDOS - ERRbadfile (File not found.) listing \emailssent\yoyo\
ERRDOS - ERRbadfile (File not found.) listing \emailssent\Tecnologies\
ERRDOS - ERRbadfile (File not found.) listing \emailssent\file.doc
smb: \emailssent\>




-jack
 
Old 09-19-2004, 12:39 AM   #8
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
No just "mget". Type bold.

smb: \> mget
Get file yoyo Tecnologies file.doc? y
 
Old 09-19-2004, 01:49 AM   #9
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thanks for your response.


there round about 100 files, yoyo file comes at 60th location.

so i have to do n 59 times.

a ? n
b ? n
c ? n
| |
| |
| |
| |
yoyo ? y

So, i have to press 59 times n and then y.

so is there any other way for it.
 
Old 09-19-2004, 02:49 AM   #10
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
How about using wild cards:

smb: \> mget yoyo*

Tip:
smb: \> recurse
directory recursion is now on
smb: \> recurse
directory recursion is now off
smb: \>
 
Old 09-19-2004, 03:00 AM   #11
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
And of course:

man smbclient
 
Old 09-19-2004, 10:35 AM   #12
emailssent
Member
 
Registered: Sep 2004
Posts: 312

Original Poster
Rep: Reputation: 30
thankx
 
Old 09-19-2004, 03:11 PM   #13
micxz
Senior Member
 
Registered: Oct 2002
Location: CA
Distribution: openSuSE, Cent OS, Slackware
Posts: 1,131

Rep: Reputation: 75
velcome;
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba Share access Spadge67 Fedora 3 11-19-2005 07:57 PM
Can't access my linux share through samba. I get permission denied. mlsbraves Linux - Software 1 08-16-2005 08:59 PM
Samba: can't access share thorax Linux - Software 4 02-13-2005 01:39 PM
share and access DSL donnection with window? demmylls Linux - General 12 04-11-2004 10:17 AM
Installed SAMBA and XP or Win2000 can access Linux Share! Please Help. NYAndy Linux - Newbie 3 02-29-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration