rapidscaleclusters.com

smbclient, quick and dirty

Every once in a while, even Linux sysadmins need to grab something from a Windows box. The fast way is to share the Windows folder containing the file(s) you need, install the samba-client package via yum (on Centos / RHEL / Fedora) like so:

yum -y install samba-client

And then get the files with a direct connection to the Windows share:

smbclient \\\\192.168.184.2\\share

Now it's just like ftp! An 'ls' will show you the contents or the remote directory, and 'get <filename>' will grab the file you wanted and transfer it to the current working directory on your Linux box. 
 

Add your comment

Your name:
Subject:
Comment:

Subscribe to the Linux Admins Blog and get new posts delivered by email!
Enter your email address:

Delivered by FeedBurner


Tell the developers:

The type of clustering you are most likely to deploy is:
 
What Linux distro do you use for clusters?
 

Copyright 2010    RapidScale Clusters, LLC