From a4d550ec736cf7ce7004da8d44996993bf022ed8 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Sun, 26 Jun 2022 22:08:09 +0900 Subject: [PATCH] Remove control characters from systemctl command output Change-Id: Idca394bca37bb3d167ec7c3a79a41b699c551172 (cherry picked from commit 198c00cf1694f68f77809893e1f2d2c0badb6746) --- copy_logs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copy_logs.sh b/copy_logs.sh index 6a7f2f385..1a167cc1a 100755 --- a/copy_logs.sh +++ b/copy_logs.sh @@ -277,7 +277,7 @@ if [ `command -v ovs-vsctl` ]; then sudo ovs-vsctl show > $LOG_DIR/ovs-vsctl_show.txt fi sudo netstat -tulpn > $LOG_DIR/netstat.txt -sudo systemctl status --all 2>/dev/null > $LOG_DIR/systemctl.txt +sudo LC_CTYPE=C SYSTEMD_COLORS=false systemctl status --all --no-pager 2>/dev/null > $LOG_DIR/systemctl.txt for table in raw filter nat mangle ; do echo $table