el_pablo has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

How can I mount a shared folder? The shared folder is on a Windows domain and the client is a OS X.

I want to copy a local backup to a folder over the network.

Thanks

Nick

Replies are listed 'Best First'.
Re: Mounting a shared folder?
by aquarium (Curate) on Aug 04, 2010 at 00:52 UTC
    You can connect to a Windows share from a Mac using the network preferences, or even possibly directly from Finder.
    What perl code/question does this relate to? I'd suggest google or Mac magazines at newsagents have answers to such basic OS networking questions.
    the hardest line to type correctly is: stty erase ^H

      Hi, it is related to Perl because my script must do the following.

      1. Compress the content from one local folder to a second local folder     Done
      2. Mount the shared folder on the network     Don't know how in Perl
      3. Send the compressed files to the newly mounted folder     Easy
      4. Unmount the shared folder     Not too hard I guess, after knowing how to mount
      5. Delete local compressed file     Easy
        You'll need to use system call or backticks or whatnot to use mount system command from perl.
        The following MacOSXhints article might help.
        the hardest line to type correctly is: stty erase ^H
Re: Mounting a shared folder?
by dasgar (Priest) on Aug 03, 2010 at 21:22 UTC

    I personally don't use Apples/Macs, but it's my understanding that their OS is basically a customized version of *nix or something similar. If that's true, you should be able use the mount command to mount the remote folder.

    For example, the command below will mount a folder named "shared_folder" that is on a system named "windows_machine" using the folder /mnt/folder as the local mount point.

    mount //windows_machine/shared_folder /mnt/winfolder -o user=domain/username

    You might need to add a -t option and specify either sambafs or cifs to get it work.