Copy to smb share
James Mcphee
jmcphe at gmail.com
Sat May 14 18:26:56 MST 2011
Unless you've already connected to the smb share, you won't be able to
access it. You could try smbclient, and do a put. I'm sure there are other
ways, but that's the quickest to script. Soooooo wrong from a security
perspective, but eh.
smbclient //target/share password -W domain -u user <<ENDEND
> cd path
> put file
> ENDEND
Something like that.
On Sat, May 14, 2011 at 5:24 PM, Tom Ostlund <tom at ostlundgroup.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello All.
>
> I am trying to figure out how to copy a file to a smb share from the
> command line.
>
> The share is
>
> smb://my-airport-extreme.local/drobo/folder/
>
> my way is failing
>
> cp test.txt smb://my-airport-extreme.local/drobo/folder/test.txt
>
> What is the right way to do this?
>
> Thanks,
> Tom
>
> Mesa AZ
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJNzx0oAAoJEMswPM0O/kkrC3kH/0GgkWHCxhF39e58BcFPlt/i
> dMO+1aK7r0DRHrAE1gBtiFPIHkhzxXBfcs3+Ppd2WYE7LvnigzzYbWeKInN+YOTZ
> EwZ1lUgWyHDbVZllOpWBsEDLl/I4J5RCwYyhnNrtcgLxAaVeMFv3/kv/PVDKgMt+
> I97h+y5Vzlp/nbnhL42GiXnJ4rLYNiFvwGsYkNpQFPJvoj3vKz3D1ZNEUf6F7hdW
> DhBX49g3k73Av0OBGj+ORjYED+m2/N93rU4accIZ8qwRV9CUBIt/QPPy/n9zKjTG
> AWR305T+ycvrUxnX9WLbPk+xGzBZBi07GaJz7LYDvJsb3DenNBBfDUFp4cmbpAQ=
> =R1Sn
> -----END PGP SIGNATURE-----
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
--
James McPhee
jmcphe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20110514/54f7c897/attachment.html>
More information about the PLUG-discuss
mailing list