Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Using Samba on a windows machine.

by ChuckularOne (Parson)
on Apr 06, 2004 at 15:48 UTC ( #342981=perlquestion: print w/replies, xml ) Need Help??
ChuckularOne has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to write a script that uses samba to move files from one AIX machine to another. It runs on an XP box (not my choice) sitting in the middle.

I have tried to use Filesys::SmbClient but don't have the proper libraries on my local machine and (unfortunately) don't have a compiler (or the permission of the desktop police here at work to run one) so I can't even compile the SMB client package to get the lib files.

Does anyone have any idea how I can use perl to samba without those libraries?


Replies are listed 'Best First'.
Re: Using Samba on a a windows machine.
by waswas-fng (Curate) on Apr 06, 2004 at 16:06 UTC
    Are you trying to use Filesys::SmbClient to do the moves on the XP box? if so, that is silly you have direct access to the CIFS shares (provided by samba on both AIX servers) from the XP box natively. Try working on the path \\<hostname>\share. If you are talking Filesys::SmbClient on one of the AIX servers (so you can get rid of the XP man in the middle, you will need a compiler.

      Thanks, I'll give this a try. I can't believe I didn't think of this. :-/
Re: Using Samba on a a windows machine.
by biosysadmin (Deacon) on Apr 06, 2004 at 16:03 UTC
    If I remember correctly, you can download binary modules from ActiveState for the Win32 platform. However, if the desktop police won't let you do that, you need another solution.

    If you have Samba running on both AIX machines, why can't you mount both drives on your XP box and do a direct copy? There are other ways of automating interactive command-line stuff with modules like Expect, but I would just use the tools that are available in your OS to do the job.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://342981]
Approved by Old_Gray_Bear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (12)
As of 2016-10-27 20:37 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (371 votes). Check out past polls.