Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Removes binary data characters dumped by xmrig
- logfile=/opt/local/xmrig/logs/status.log
- if perl -nle 'print if m/[^ -~\t\r]/' $logfile |hexdump -C |grep 0 > /dev/null;
- then
- perl -i.dirty -ple 's/[^ -~\t\r]//g' $logfile
- else
- echo 'nothing to clean'
- fi
Add Comment
Please, Sign In to add comment