LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba in command line (https://www.linuxquestions.org/questions/linux-newbie-8/samba-in-command-line-668965/)

uhum2004 09-10-2008 11:59 AM

samba in command line
 
Hi all,
could somebody enlight me, how can I refer to a directory of a Windows server from command line? I'd like to use it in my script.
Thanks forward,
Istvan

CRC123 09-10-2008 12:30 PM

You can mount it in the directory tree through /etc/fstab so that it is persistent and then access it like a normal local file.

Add something like this to your /etc/fstab file:
Code:

//server/share /localMountPoint cifs guest 0 0
Or you can use the smbclient command:

Code:

smbclient \\\\sambaserver\\myshare
For more info, type 'man smbclient'


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