IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 3rd, 2006, 01:35 PM
marlonmin marlonmin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 208 marlonmin User rank is Private First Class (20 - 50 Reputation Level)marlonmin User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 12 h 18 m 21 sec
Reputation Power: 5
Why doesn't create temporary files?

Code:

Content-Type: text/html
print <<ENDOFTEXT;
<HTML>
<HEAD><TITLE>Hello World!</TITLE></HEAD>
<BODY>
<H4>Hello World!</H4>
</BODY>
</HTML>
ENDOFTEXT

$content = "this is a test";

open (CF, ">C:\\Inetpub\\wwwroot\\TempDoc\\test1.txt");

print CF $content;

exit(0);

I want to create a temporal files test1.txt in the directory TempDoc. Why it doesn't work? nothing created. 
I am working on IIS 6.

Thank you for your help.

Reply With Quote
  #2  
Old January 3rd, 2006, 02:15 PM
KevinADC's Avatar
KevinADC KevinADC is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Oct 2004
Location: Sunny Southern California
Posts: 2,164 KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 20 h 44 m 2 sec
Reputation Power: 448
is the script crashing? Try using die to see if there is a problem:

Code:
open (CF, ">C:\\Inetpub\\wwwroot\\TempDoc\\test1.txt") or die "Can't  open file: $!";


you could also check the server errors logs if you have access to them.

Reply With Quote
  #3  
Old January 3rd, 2006, 02:57 PM
marlonmin marlonmin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 208 marlonmin User rank is Private First Class (20 - 50 Reputation Level)marlonmin User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 12 h 18 m 21 sec
Reputation Power: 5
Quote:
Originally Posted by KevinADC
is the script crashing? Try using die to see if there is a problem:

Code:
open (CF, ">C:\\Inetpub\\wwwroot\\TempDoc\\test1.txt") or die "Can't  open file: $!";


you could also check the server errors logs if you have access to them.


Code:
Can't  open file: Permission denied at C:\Inetpub\wwwroot\cgi-bin\helloworld\HelloWorld.pl line 10.

This is the error message. Why permission is denied? 
How can I grant the permission? I have full control of IIS.
It is on my personal computers.

Reply With Quote
  #4  
Old January 3rd, 2006, 03:41 PM
KevinADC's Avatar
KevinADC KevinADC is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Oct 2004
Location: Sunny Southern California
Posts: 2,164 KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)KevinADC User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Weeks 6 Days 20 h 44 m 2 sec
Reputation Power: 448
I am not familiar with IIS. It would be helpful to not place your questions/answers in code tags, just put code in code tags.

Reply With Quote
  #5  
Old January 3rd, 2006, 04:29 PM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,405 Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)  Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 2 Days 2 h 52 m 17 sec
Reputation Power: 2794
Send a message via Google Talk to Axweildr
Orkut
Have you got IIS configured to run CGI/Perl scripts?
__________________
--Ax
without exception, there is no rule ...
The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


09 F9 11 02
9D 74 E3 5B
D8 41 56 C5
63 56 88 C0
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
-- Jamie Zawinski
Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...

Reply With Quote
  #6  
Old January 4th, 2006, 07:44 AM
Ctb's Avatar
Ctb Ctb is offline
An Ominous Coward
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jan 2002
Posts: 4,425 Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level)Ctb User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 10 h
Reputation Power: 0
This is not a perl question anymore. Check the documentation in the Activestate perl distribution under "Web Server Config" for information on setting up IIS to run with Perl and check the IIS documentation for information on setting up the web server correctly. Specifically, look for information on permissions and/or CGI configuration.

The only thing I know to tell you is that IIS 6 is generally distributed in a much more "locked down" format than previous versions of the software were for security reasons, which might be why the server can't access the file. How to change that, however, is not within the scope of this forum.

Moving to the IIS forum rather than closing. Mods there can retain/close it at their discretion.

Reply With Quote
  #7  
Old January 4th, 2006, 08:05 AM
Axweildr's Avatar
Axweildr Axweildr is offline
CPAN medic ...
Dev Shed God 13th Plane (11000 - 11499 posts)
 
Join Date: Mar 2003
Location: Location: Location:
Posts: 11,405 Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)Axweildr User rank is General 27th Grade (Above 100000 Reputation Level)  Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1Folding Points: 124792 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 4 Months 2 Days 2 h 52 m 17 sec
Reputation Power: 2794
Send a message via Google Talk to Axweildr
Orkut

Reply With Quote
  #8  
Old January 4th, 2006, 12:23 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,957 Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level)Doug G User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 15 h 35 m 19 sec
Reputation Power: 802
One guess is a permissions problem, make sure the IIS user account has write permissions to the target folder.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved
of it. --Mark Twain

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Why doesn't create temporary files?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT