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@ostlundgroup.com> wrote:
> > 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
> > ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@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@gmail.com
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss