in reply to Re^2: cleanup a cancelled CGI script
in thread cleanup a cancelled CGI script
or similar (untested).my $tmp_dir = "/path/to/tmpdir"; opendir(TMPDIR,$tmp_dir) || die $!; -M "$tmp_dir/$_" > 1/24 and unlink "$tmp_dir/$_" for (grep /zip/, read +dir(TMPDIR)); closedir(TMPDIR);
cLive ;-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: cleanup a cancelled CGI script
by kragen (Sexton) on Jun 09, 2004 at 21:16 UTC | |
by cLive ;-) (Prior) on Jun 09, 2004 at 21:40 UTC |