I have a perl script which creates images(files) on a shared web server. Part of the functionality of the web site will include allowing users to delete images they no longer need.
I have tried using chmod in the perl script that creates the images but when I take a look at the image created, it shows the same (default -rw-r--r-- ). I have looked at the archives and don't see any specific pointers for allowing a nobody process to delete a file. The only suggestion I found is for deleting a temporary file that is created within the same script.
How would I delete a file that is created outside of the script?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|