Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Reading files created by CGi

Reply
Thread Tools

Reading files created by CGi

 
 
Praki
Guest
Posts: n/a
 
      01-03-2008
Hi All,

I have some files created by CGI -Perl in Apache server.i could not
veiw those files using the ls cmd. it does not have permissions.When i
try to read using the CGI-Perl program i could do that. But when i try
to do the same using the Perl (filename.pl) i could not read that.how
can i read that file.is there any way to do that.

Thanks,
Prakash
 
Reply With Quote
 
 
 
 
RedGrittyBrick
Guest
Posts: n/a
 
      01-03-2008
In article <f68f4a19-44ba-4f83-a0aa-539da7b14432
@t1g2000pra.googlegroups.com>, http://www.velocityreviews.com/forums/(E-Mail Removed) says...
> Hi All,
>
> I have some files created by CGI -Perl in Apache server.i could not
> veiw those files using the ls cmd. it does not have permissions.When i
> try to read using the CGI-Perl program i could do that. But when i try
> to do the same using the Perl (filename.pl) i could not read that.how
> can i read that file.is there any way to do that.
>


It is almost certainly a case of file access permissions. On a Unix
system, Apache will run CGI programs using the User-ID of the Apache
process. Any files created will be owned by that User-ID and will have
permissions dictated (I guess) by the UMASK value in effect for that
process.

In the CGI script that creates the files you can insert an appropriate
chmod command to change the read permissions to something more suitable
to your needs.

If you can't alter the CGI script then you need to contact the
administrator of the web server.

see `perldoc -f chmod`
 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
aspnet.mdf file still is created even though i created a custom provider? Sunfire ASP .Net 1 11-10-2007 04:30 AM
OleDbDataAdapter created in code behaves differently from one created by wizard. tom c ASP .Net 6 09-06-2006 04:46 PM
are the objects created in the stack guarranted to have been created? jimjim C++ 12 06-03-2005 12:57 PM
schemalocation entry in XML created by castor created sources? Ulf Heyder XML 0 10-16-2003 02:14 PM
Reading cookies created by CGI program Thomas Theakanath Javascript 2 08-27-2003 04:54 AM



Advertisments