Re: FTP to a windows file share?



MattJ83 wrote:
C:\temp>type \\Violet\Infotop\UNC.txt
This is a text file on another PC


^^^ are you just creating a txt file here in temp? but with
'\\Violet\Infotop\UNC.txt' as a filename?

C:\temp>type test.pl
#!perl
use strict;
use warnings;
open my $fh, '<', '//Violet/Infotop/UNC.txt'
or die "Unable to open file because $!";
while (<$fh>) { print; }
close $fh;


C:\temp>test.pl
This is a text file on another PC

This code is just creating a file called UNC.txt in temp and then
running some code from temp to open the file isn't it?

Im trying to run the script from a unix server (bash shell) and trying
to get the same result at the moment (ie - open a file from a windows
file share in unix).
Eventually - getting the data passed from unix to this windows file
share.


I just started to read this thread so I'm sorry if this was discussed and I just missed it. I'm guessing that windows server ukbr1234 has a shared directory called 'shared' with a sub-directory called test. This share is physically located on the server, for example, at d:\share\test on ukbr1234. Correct?

You need to copy some unix files to \\ukbr1234\share\text. Correct?

Is ftp installed on the windows server?
If not, can ftp be installed on this server?

If ftp is or can be installed, then you can create an virtual ftp directory pointing to d:\share\test. The unix server can then ftp to the windows server just like you ftp to a unix server using Net::FTP. The windows share \\ukbr1234\share\test will contain the unix files when accessing from your desktop. Is this what you are looking for?

--

Len
.



Relevant Pages

  • Re: Convert EBCDIC to ASCII in batch?
    ... Convert EBCDIC to ASCII in batch? ... We have an ftp ... of the Windows server people, I transferred the same file to the same, ... failing, server using BINARY mode. ...
    (bit.listserv.ibm-main)
  • RE: Download file issue - FTP & Web
    ... Windows Server 2003 supports Extension Mechanisms for DNS function ... Microsoft CSS Online Newsgroup Support ... |> the SBS Server so that after you change the IP address of the FTP ...
    (microsoft.public.windows.server.sbs)
  • RE: FTP - Put Error - EZA2590E
    ... When executing the FTP of a big file from IBM to an UNIX ... That means that the FAR END, that is, the UNIX server, disconnected for ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: Convert EBCDIC to ASCII in batch?
    ... It sounds like a setup issue with the failing FTP server, ... of the Windows server people, I transferred the same file to the same, ...
    (bit.listserv.ibm-main)
  • Win Server and UNIX
    ... UNIX based system in use and for MS CRM we must install a Windows server ... I havent any experience for UNIX based system so i need your help or tips to ...
    (microsoft.public.windows.server.active_directory)