|There's more than one way to do things|
Re: Run and/or download code directly from perlmonk nodes.by Intrepid (Deacon)
|on Sep 03, 2003 at 06:09 UTC||Need Help??|
I *like* it!
A fellow Monk and I recently wrote a tool like this ourselves, but the in-memory eval() isn't a capability of our implementation. Anyway, I have a slight improvement to offer on your script. It concerns the mundane issue of where to save a file on disk. Your default /tmp would be fine on a single-user workstation but I thought about a multi-user system where security / privacy might be a greater concern, and one would want to confine one's activities to one's ~USER/ ($HOME) dir.
This small patch makes sure that such a directory exists before allowing the script to continue if writing to disk is going to be needed.
Here's the germane portion of what this change entails:
-- Try my n.y.p.m.blue Perl Monks CSS Theme (edit "On-Site CSS Markup" in your User Settings)