CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Win32 Programming Help:
Writing to shared network drive

 



rizvi
Deleted

Jun 12, 2000, 3:43 AM

Post #1 of 5 (4865 views)
Writing to shared network drive Can't Post

Am running ActivePerl on an IIS Server (NT).
Trying to write a CGI script
open("REQFILE", "> outputfile") - works file;
creates file in script directory.

I want to create a file on a network machine.
I mapped this share to the server as J: drive
and tried open("REQFILE", "> J:\\outputfile") - but does not like this.

How can I reference a share on a network drive in open();

Thanks


TheGame+
Deleted

Jun 14, 2000, 6:39 AM

Post #2 of 5 (4865 views)
Re: Writing to shared network drive [In reply to] Can't Post

Just a thought : does the webserver know that "J:" corresponds to "\\\\some_server\\some_share" ? It's running under a different user, after all...


dws
Deleted

Jun 14, 2000, 6:40 PM

Post #3 of 5 (4865 views)
Re: Writing to shared network drive [In reply to] Can't Post

If you check $! after the open fails, it'll say "Bad file descriptor", which is NTs somewhat cryptic way of telling you that IIS can't see J:

As mentioned above, IIS is running as a different user. How to get IIS to see J: is a separate question, for which I have no answer.



rizvi
Deleted

Jun 15, 2000, 1:26 AM

Post #4 of 5 (4865 views)
Re: Writing to shared network drive [In reply to] Can't Post

On the Webserver machine (NT4) I have mapped
J: to the share using
net use j: \\essbase3\MinervaQuery
On the Webserver clicking on J: drive on
NT Explorer shows all files in share MinervaQuery. Also I can read/write to it
from Webserver. If I run the code natively on Webserver it works. Problem seems to be when it runs as CGI.


dws
Deleted

Jun 18, 2000, 10:44 PM

Post #5 of 5 (4865 views)
Re: Writing to shared network drive [In reply to] Can't Post

Shared drives are typically reconnected at Login. Have you done something special (such as having the web server process log in as you) to allow the web server to see them?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives