leocharre has asked for the wisdom of the Perl Monks concerning the following question:
i have these files to be shared with users online
they are sensitive files
i am storing them in a non http accessible location
when the user requests a download
a script makes a symbolic link
and i want to have an "at" job schedule symlink deletion according to
filesize and connection
(note: i do not take tainted data for this transaction. at this point in my program, the file selected has been already checked for user permissions, etc at a previous step, don't need help with that either)
i can figure out how to pass "at" a job from a text file. but how on earth do i do something like ..
at now + 1 minute rm symlink?Also, if anybody has any comments about this method, that it is stupid and why, please tell me. I also considered making a named pipe or something.. also considered a script that would stream the file line by line.. but i am sketched out by the variety of files there may be, etc
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Base for password protected file downloads
by ikegami (Patriarch) on Nov 28, 2005 at 20:24 UTC | |
by leocharre (Priest) on Nov 29, 2005 at 14:58 UTC | |
|
Re: at job help ?
by merlyn (Sage) on Nov 28, 2005 at 20:06 UTC | |
|
Re: at job help ?
by davidrw (Prior) on Nov 28, 2005 at 20:09 UTC | |
|
Re: at job help ?
by pileofrogs (Priest) on Nov 28, 2005 at 22:08 UTC | |
by merlyn (Sage) on Nov 28, 2005 at 22:18 UTC | |
by leocharre (Priest) on Nov 29, 2005 at 15:11 UTC | |
by merlyn (Sage) on Nov 29, 2005 at 15:28 UTC | |
by leocharre (Priest) on Dec 07, 2005 at 19:43 UTC |