|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: Cool symlink hackby blazar (Canon) |
| on Nov 17, 2005 at 12:52 UTC ( #509387=note: print w/ replies, xml ) | Need Help?? |
|
Hmmm... I would call this a ehm... "cool symlink hack"!! Just an idea though: You may use an actual, existing, file as a target if the system is down for maintenance. So you can put relevant time info in its atime and/or mtime by means of utime. E.g.:
Of course this is oversimplified and you would put all sorts of checks you think to be appropriate! All in all the technique is somewhat awkward in that you use file existence to signal failure. But you're already using a "hanging symlink" to carry info, so...
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||