Hi All,

Thanks for the many replies. Sorry .. I should have given
the full code, to avoid the confusion. The double backslashes
is infact in the code, so its not the issue.
Let me more elaborate..
my $sourcefile = 'c:/appl/process/attr_name.txt'; my $destination = '//System1/ShareDir'; $sourcefile = slashtobackslash($sourcefile); $destination = slashtobackslash($destination); system("copy $sourcefile $destination"); } sub slashtobackslash { my $value = $_[0]; $value =~ s-/-\\-g; return $value; }
I am processing the file at the server side, and trying to
copy to the target system. The target system has shared
directory which has full permissions. When I copy from the
server to this target system using copy command on command
line, that works fine and the user is any user(administrator,
or normal user which was being created).

Regarding the cgi program user, the explanation I got from
the IS group is may be the user might not have permissions,
to write into any system, may be for the security issues.
Well I wish I can be more specific, but as I am dealing
with server, I dont have direct access to it. All the
things I figured out till now are through cgi program and
interacting with some one on IS and getting the feedback !!!
Well about the return call of system command .. I will be
checking now.
IS dept. enabled the ftp from the server to the target system
to the specific directory and may be I can use net::ftp module
to implement this?
use Net::FTP; $ftp = Net::FTP->new("targetsystem", Debug => 0); $ftp->login("anonymous"); $ftp->put("c:\\test11.pl"); $ftp->quit;
I'm getting the following error ..
Use of uninitialized value in concatenation (.) or string
at C:/Perl/site/lib/Net/FTP.pm line 310.
Any ideas?

Thanks in advance,

Raj.

In reply to Re: Copying files between two systems using cgi/perl by arajani
in thread Copying files between two systems using cgi/perl by arajani

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.