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

hi Monks,

i am having some text files in Unix System, so how can i

1) access them through Windows System or

2) copy those files into Windows System.

Note :- a) the unix system is in Public IP

b) the Windows system is in Private IP

c) both the O/S are installed in different systems

(*** how to create Share folder in Unix system

(samba), by using perl script how to read the text files

which is in the share folder

files from Windows system )
  • Comment on how can i copy / access files in the unix system share folder from windows system

Replies are listed 'Best First'.
Re: how can i copy / access files in the unix system share folder from windows system
by tachyon (Chancellor) on Jun 21, 2004 at 07:14 UTC

    Samba is a bad idea on a public Unix box, although you could make a VPN to secure it. FTP, STFP, or SCP would all work fine if all you really want is file copy. FTP is the easiest but least secure. Another option that is trivial to set up and may suit you would be to use Apache and .htaccess to password protect a browsable location on your unix file system, with acess via IE on the Win32 box. This is not secure (plaintext authentication) but you could use HTTPS/SSL to fix that.

    cheers

    tachyon

Re: how can i copy / access files in the unix system share folder from windows system
by Tomte (Priest) on Jun 21, 2004 at 10:47 UTC

    to spin-off tachyons suggestion of using Apache/.htaccess:

    the easiest thing to use on the windows-box would be a WebDAV-share on the sever realized using apache-mod_dav (apache2 IIRC has it on-board, apache1 needs a seperate module).

    have a look at webdav.org and this HOWTO to get started on that road...

    Edit:fixed broken sentence to give some meaning to this post...*sigh*

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus