Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Delete old Rails sessions (See related posts)

find /tmp/ -name "ruby_sess*" -cmin +60 -exec rm \{} \;

Comments on this post

jesus_penis posts on Apr 10, 2007 at 22:48
Dear Good sir.

You will very seriously remove the first "slash from tmp" otherwise it will Look to your the Root of your server and not the Root of your "rails app".

so "do it" like this:
find tmp/ -name "ruby_sess*" -cmin +60 -exec rm \{} \;

Thank you and trying to not be such a fucking stupid next time.

Your friend,
Kebab King from Jackson Heights

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts