For what purpose, exactly? You need to somehow tell the system you’re
using SMB, and a couple of backslashes is not going to do it since those
are just characters. I would look into smbmount (mount the share
somewhere and then access it normally) or smbclient to make a
connection. Once connected (either by mounting the share or with the
smbclient connection, which works a lot like sftp or ftp from the
command line) you can interact normally as if you are on the share directly.
smbclient example
smbclient -U Administrator//nts25.lab.novell.com/c\$
Password:
smb: \> ls
$Recycle.Bin DHS 0 Thu Apr 19 14:05:08 2012
Config.Msi DHS 0 Thu Apr 19 13:46:37 2012
Documents and Settings DHS 0 Mon Jul 13 23:06:44 2009
pagefile.sys AHS 8128 Fri Apr 20 03:16:01 2012
PerfLogs D 0 Mon Jul 13 21:20:08 2009
Program Files DR 0 Thu Apr 19 15:58:14 2012
Program Files (x86) DR 0 Thu Apr 19 15:58:25 2012
ProgramData DH 0 Fri Apr 20 03:17:39 2012
Recovery DHS 0 Thu Apr 19 14:04:35 2012
System Volume Information DHS 0 Thu Apr 19 15:58:53 2012
Users DR 0 Thu Apr 19 14:04:53 2012
Windows D 0 Thu Apr 19 16:04:47 2012
44706 blocks of size 16777216. 43298 blocks available
smb: \> exit
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Well the actual purpose I had in mind was as part of a qemu-img convert line, I just wanted to read the source .vhd file directly over the smb network from the other server.
For an example lets simplify by using a copy command as an example:
cp \Machine\Share\myFile.txt myfile.txt
doesn’t work
Should I be doing something like:
cp smb:\Machine\Share\myFile.txt myfile.txt
Mount it (the share) first, then use the command from the mountpoint.
That will be easiest, use the least amount of space locally (assuming
you do not want to copy it locally before doing something with it).
Something like:
mount -t cifs //serverhere/share /mnt
From there you can go directly to /mnt/whatever/goes/here/from/share and
access everything seamlessly.
Good luck.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
On 2012-04-20 16:12, ab wrote:
> For what purpose, exactly? You need to somehow tell the system you’re
> using SMB, and a couple of backslashes is not going to do it since those
> are just characters. I would look into smbmount (mount the share
> somewhere and then access it normally)
I don’t see “smbmount” anywhere :-?
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
On 04/20/2012 03:13 PM, Carlos E. R. wrote:
> On 2012-04-20 16:12, ab wrote:
>> For what purpose, exactly? You need to somehow tell the system you’re
>> using SMB, and a couple of backslashes is not going to do it since those
>> are just characters. I would look into smbmount (mount the share
>> somewhere and then access it normally)
>
> I don’t see “smbmount” anywhere :-?
When smbfs got renamed to cifs, it went away. Now you use “mount -t cifs”, or
“mount.cifs”.