summaryrefslogtreecommitdiffstats
path: root/btc/mining
diff options
context:
space:
mode:
authoruser <user@bergwerk>2011-07-03 06:43:01 +0000
committeruser <user@bergwerk>2011-07-03 06:43:01 +0000
commit51e02c6852370f9175a264133ef3434470b187ec (patch)
tree0f110dc71ecad00cf89d3250766cc8bd7a6b4f07 /btc/mining
parentc163035fa430a0f2322219eb7aa6fa0b86992c4f (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...
Diffstat (limited to 'btc/mining')
-rwxr-xr-xbtc/mining/user/bin/cleanup_tmp4
1 files changed, 4 insertions, 0 deletions
diff --git a/btc/mining/user/bin/cleanup_tmp b/btc/mining/user/bin/cleanup_tmp
new file mode 100755
index 00000000..e1395b19
--- /dev/null
+++ b/btc/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