http://www.perlmonks.org?node_id=631673


in reply to Re^2: Bootstrapping and cleaning after remote execution of method in framework consisting of multiple modules
in thread Bootstrapping and cleaning after remote execution of method in framework consisting of multiple modules

"It [the framework] can't be installed pemanently cause each connection (SSH) can use different version of framework."

How many different versions are there? Can't you just store them permanently in a version-specific directory? (Copy over if needed, otherwise reuse the existing one.) Copying nothing is a lot faster than copying something.

If the number of different ones is going to grow without bound, then use 'find -ctime +3' or something to prune out the old ones. Then you'll have a time-bounded LRU cache. Whee!

  • Comment on Re^3: Bootstrapping and cleaning after remote execution of method in framework consisting of multiple modules

Replies are listed 'Best First'.
Re^4: Bootstrapping and cleaning after remote execution of method in framework consisting of multiple modules
by mman (Novice) on Aug 10, 2007 at 08:11 UTC
    In your solution version is the key to uniqueness. But we can't delete old versions of framework owned by some dropped-its-connection user logged in as another user. And even if we implement 'cleaner' that will run after connection, but before execution, we still won't solve the problem of garbage left in home/tmp directory. I prefer think of uniqueness as username, $TTY, login time and ip address (we can get it with `w`).