Koozali.org: home of the SME Server

Copy to a shared win folder

AlecN

Copy to a shared win folder
« on: September 23, 2001, 04:23:57 PM »
Can anyone help with the command required to copy files from e-smith (any directory) to a shared folder on a local Win PC. i.e. cp filename /winpc-name/c/shared-dir-name/, (I've seen it done, but can't remember!). It is easy to copy to the file directory in an i-bay and then access it from windows, but I would like to be able to send directly to another pc on the network.

Alec
PS I have tried this post in the "General Discussion Forum".

Dan Brown

Re: Copy to a shared win folder
« Reply #1 on: September 23, 2001, 05:11:33 PM »
The only way I can think of to do this would be to share a drive on the win box and mount it using smbmount.  Something like this:

mount -t smbfs -o username=tridge,password=foobar //fjall/test /data/test

where /data/test is where to mount it in your filesystem on the e-smith machine.  Then you can cp to your heart's content.  I haven't used this at all, but it looks like it should work.

AlecN

Re: Copy to a shared win folder
« Reply #2 on: September 23, 2001, 08:16:08 PM »
Dan, thank you very much. It worked like a charm. Made a directory /data and
FYI, my system didn't like the -o parameter and I got away with:
mount -t smbfs //winpcname/sharedwindir /data. I was asked for the root password and voila! - Thanks again.