AFAIK, you will only be able to mount windows from Linux using cifs or smbfs. In my world Linux uses Samba for both. Samba does not run on your Windows computer it only needs to run on your Linux computer.

If you run this command on a Redhat and most likely any other Linux computer you can see if Samba is running. You should see processes for smbd -d and nmbd -D running

ps -aux | grep mbd

If samba is running I use this command on my Linux servers to run perl scripts on Windows file system all the time.

$mp = "/mnt/mylinuxmountpoint"; $winshare = "//windowsservername/windowsshare"; RHEL3 $mount = "/bin/mount -t smbfs -o username=hari9,password=hari9passwor +d,workgroup=hari9doomainname"; Older versions of the 2.4 kernel use smbfs and newer versions use cifs +. RHEL5 $mount = "/bin/mount -t cifs -o username=hari9,password=hari9password +,workgroup=hari9doomainname"; sub Mnt { my ($mntcmd,$mount,$share,$mp); ($mount,$share,$mp) = @_; $mntcmd = "$mount $share $mp"; system("$mntcmd"); } Mnt($mount,$winshare,$mp);
Perl Good - Manual process bad

In reply to Re: write/read to remote machine by monk2b
in thread write/read to remote machine by hari9

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.