diff options
author | user <user@bergwerk> | 2011-07-03 06:43:01 +0000 |
---|---|---|
committer | user <user@bergwerk> | 2011-07-03 06:43:01 +0000 |
commit | 0a82e39024f64aef05e51c0c5ec91e9d431be61a (patch) | |
tree | ebce3d2ddabac76a9fdb3fea9d2a77b32cfd9a7b | |
parent | 52237fa9912ac06ce89a1e61f8fde4d1a44cf828 (diff) |
add mining/user/bin/cleanup_tmp
usage: combine this with cron to clean miner's .so-files from /tmp
this was required @bergwerk to prevent filling up the tmpfs what stopped
the miner...
-rwxr-xr-x | mining/user/bin/cleanup_tmp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mining/user/bin/cleanup_tmp b/mining/user/bin/cleanup_tmp new file mode 100755 index 00000000..e1395b19 --- /dev/null +++ b/mining/user/bin/cleanup_tmp @@ -0,0 +1,4 @@ +#! /bin/sh +ls -lAtr /tmp/ | sed -rn ' + /\.so$/{$!{s/.* ([A-Za-z0-9]+\.so)$/rm -v \/tmp\/\1/p}} +' | sudo sh |