Accessing SMB share on Mac OSX for file copy

J

John

Greetings. I am attempting copy a file from a Mac OSX (10.3.6) to a share
on a Windows 2000 server using Perl. To trouble shoot my problem I wrote a
simple script to verify the existance of a file on the share which is
failing. I don't belive this is a rights issue since I can
add/delete/modify files using the OSX Finder. So that leaves me with how I
am refering to the share which is using UNC (\\server name\share name
\folder name\). Is this the correct way to access the share? I have tried
several different ways to access the share and they all fail. Do I need to
include a way to connect to the server in the code (to connect to the share
and pass a username/password)? Currently I am connecting to the share
through finder.


my $File = "//FS1/Data/FileTransfer/test.txt";
#my $File = "\\\FS1\\Data\\FileTransfer\\test.txt";
#my $File = "smb:\\FS1\\Data\\FileTransfer\\test.txt";

unless (-f $File) { print "\nFile DOES NOT Exist!" }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top