Re: Using Files from mapped drives



Sorry Paul, I was a bit stressed out, however I did find a fix, and I
would like the whole world to know what it is, hopefully no one else
will ever have to sweet like that over a dumb problem. The fix is to
use the UNC name of the shared resource. for example, I was trying to
use the r: drive for \\10.1.69.3\rdrive , but in order to access those
files, the following format is needed:

\\\\10.1.69.3\\rdrive\\http\\admin\\records.gamma

To anyone who has the smae problem I had, simply double up the slashes
( since perl thinks \ is trying to include a new line or such ).

So the code that works is as follows:


open (FILE, "\\\\10.1.69.3\\rdrive\\http\\admin\\records.gamma") || die
"cannot open due to $!";
@lines = <FILE>;
print @lines;
close(FILE);






Paul Lalli wrote:
Jon.Macpherson@xxxxxxxxx wrote:
Paul Lalli wrote:
Jon.Macpherson@xxxxxxxxx wrote:
Well, it works from the command line, but not in a browser window......

What is it? (Please quote some context when posting a reply)

What is "not works"? (Please post the actual error description)

The script didn't work, got an internet server error, log file says:
"cannot open due to no such file or directory.


Have you looked in your server logs?

Sorry...... Been programming perl for 5 years, just thought that server
logs was a no-brainer


Have you read the appropriate FAQ?
perldoc -q 500
My CGI script runs from the command line but not the
browser. (500 Server Error)

I have probably read ever standard perl doc, faq, tutorial, from reg.
expressions to object orientation.



When I run the code on the command line, it will open the file from a
mapped drive, but when I run the program as a CGI thru apache, it will
not be able to open the file. I really appreciate help, I have to have
this program working by the 13th of march !!! a newspaper is upgrading
their editorial system to use my software, and its not working.

I am phenomenally amused by this post. You post a poor question, and I
ask four different questions in an attempt to help you. You respond by
frantically telling us how you need the solution immediately, and
completely fail to answer any of my questions.

Did you think I was posting those questions for the hell of it? For my
own satisfaction? If you had taken the time to find the answer to ANY
of those questions, I bet you would have found the answer.

As it is now the 13th of March, I can only hope that your reluctance to
put forth any effort into solving your problem has resulted in some
large problem for your client, thus forcing either A) you to become a
better programmer next time around, or B) you to lose this client, and
thus create a job opportuinity for a better programmer.


Thanks paul, my biggest motivater is revenge...... you gave me the umph
to figure this out. Problem fixed !!!!




Paul Lalli

.



Relevant Pages

  • Re: Y&R: If the Latham rumor is true, what do they fix?
    ... Top posting as I feel compelled to fix your fix ... what plot course adjustments do they make? ... later, have Heather Tom come back as the real Victoria, JT-free. ... Ricky comes back at age twenty and asks Heather why Paul has never ...
    (rec.arts.tv.soaps.cbs)
  • Re: Unable to print from IE6
    ... No, I don't, nor can I remember seeing this as the fix in any other discussions. ... > ~Robear Dyer ... > Paul wrote: ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: [fw-wiz] Win 2003 and PiX
    ... Enforcing limits in application layers is a *good* thing from a security ... fix in by the time the protocol or implementation changes are widely ... didn't have a fix ready to roll. ... Paul D. Robertson "My statements in this message are personal opinions ...
    (Firewall-Wizards)
  • RE: PowerNow-K8 and Winchester CPUs
    ... I think there is a better way to fix this. ... > Paul, can you comment on this one? ... >> My first attempt to fix this was to limit the vid to the ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Need reviews of HLA Adventure
    ... > problem and email it to me, I'd fix this in HLA. ... if an unsuspecting player decides to attack it ... Paul would know. ...
    (alt.lang.asm)