New answers tagged bash
7
votes
Bash script for manually cleaning up the Traefik access log file and limiting it to a maximum of 50 MB
log rolling races
I can't imagine why you chose to re-invent the wheel here
(and the original posting is not so tagged).
Log rolling is a mature and well studied need,
with good solutions such as the ...
9
votes
Bash script for manually cleaning up the Traefik access log file and limiting it to a maximum of 50 MB
Log rotate
At first it was unclear to me why you chose this approach rather than take advantage of the various log rotate options that are available in Traefik (docs).
But it turns out that Traefik ...
7
votes
Accepted
Bash script for manually cleaning up the Traefik access log file and limiting it to a maximum of 50 MB
Overall, looks good to me. Just some minor nitpicks:
size=$(stat -c%s "$fn")
That's a case where set -e won't ...
6
votes
Accepted
Bash tool for automating Telnet/SSH commands with live interactive session takeover
What's Good
The script shows solid understanding of several advanced bash concepts:
Named pipes for bidirectional communication with telnet
Proper cleanup with <...
Top 50 recent answers are included
Related Tags
bash × 836linux × 196
shell × 189
beginner × 98
performance × 42
file-system × 40
git × 39
installer × 39
awk × 36
sed × 35
console × 34
sh × 33
security × 25
unix × 24
macos × 24
python × 20
parsing × 20
networking × 16
c × 14
mysql × 14
amazon-web-services × 14
ssh × 14
regex × 13
curl × 13
wordpress × 12