Hello,
I have a script to read remote file. The script goes as follows,
#!C:\Perl\bin\perl.exe
$remote= '\\\remotehost\remotedir\remotefile.jml';
open(fp, $remote) or die ("could not open the file");
print while(<fp>);
close(fp);
This script runs fine on my windows machine. But the same script when
I run in UNIX, after changing the shebang line to /usr/bin/perl
, I
get
could not open the file file_name.pl at 4
The remote host from which I am trying to read the file is also
Windows box.
1. where am i making wrong?
2. Why the script is not running on UNIX?
Thank you,
Regards,
kath.