Pages

Sunday, August 11, 2013

Get file via command line from SMB share

Has a server fire.  I'm moving an old legacy application to a mac until these old programs can be re-written.

 

Having an issue:

 

exec("/usr/local/bin/smbclient -I 10.1.2.2 //MD-WHS-2/PHASER -N -c 'get RECEIVING.DAT'") worked on the old bsd box to move a file to the server.

I'm having trouble getting the folder to mount, let alone move the file to the mac.

 

mount -t smbfs -v "//guest@10.1.2.2/PHASER" /Volumes/MDWHS2

 

was attempted - failed. 

 

mount_smbfs: server connection failed: Unknown error: -5996 is result.

 

I'm not at all sure what I'm doing.  Any advice appreciated.

 

running XAMPP on osx 10.7.5.

 

Thanks in advance.


View the original article here

0 comments:

Post a Comment