Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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?

Thanks.

Comment on Using Samba on a windows machine.
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.

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.


    -Waswas
      Thanks, I'll give this a try. I can't believe I didn't think of this. :-/

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2014-07-25 06:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (169 votes), past polls