Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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

by sfink (Deacon)
on Aug 09, 2007 at 23:21 UTC ( #631673=note: print w/ replies, xml ) Need Help??


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
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`).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://631673]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-12-25 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls