[H-GEN] Copying a file to a NT box
David Jericho
david.jericho at bytecomm.com.au
Wed Nov 13 22:12:06 EST 2002
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
On Thu, Nov 14, 2002 at 12:40:38PM +1000, Paul Clarke wrote:
> Now how can I copy a file to a share on an NT box?
You have a couple of options.
1) You can use smbclient, but I believe you'll have to write something
like an expect script to get it all working properly.
2) You can mount the share to your local system using smbmount/mount.
Under Red Hat, I do
/bin/mount -t smbfs -o username=davidj,password=mypassword //machine/share /mountpath
You may also have to provide the ip=<hosts ip> option in the -o
string if your name resolution isn't behaving properly.
3) I believe there are automounter daemons that do CIFS/SMB, but I
cannot remember the name or source of them. Exercise for the reader
to find.
--
David Jericho
Senior Systems Administrator, Bytecomm Pty Ltd
--
Scanned and found clear of viruses by ENTIREScan. http://www.entirescan.com/
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list