problem reading remote file.
- From: "kath" <nitte.sudhir@xxxxxxxxx>
- Date: 16 Feb 2007 01:45:50 -0800
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.
.
- Follow-Ups:
- Re: problem reading remote file.
- From: Mirco Wahab
- Re: problem reading remote file.
- Prev by Date: Re: New to Perl, OOP inheritance
- Next by Date: Re: problem reading remote file.
- Previous by thread: set a variable with a specified element of an array...and all elements that follows
- Next by thread: Re: problem reading remote file.
- Index(es):
Relevant Pages
|