From 2880eda259527ae0f886e793d93f823b1620b8bc Mon Sep 17 00:00:00 2001 From: Odyssey Date: Sat, 7 Jan 2023 18:21:44 +0100 Subject: [PATCH] try Signed-off-by: Odyssey --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7592cdb..eb1588a 100644 --- a/main.go +++ b/main.go @@ -31,7 +31,7 @@ func main() { }) } // Get the number of users online - out, err := exec.Command("/usr/bin/users | /usr/bin/wc -l").Output() + out, err := exec.Command("bash", "-c", "/usr/bin/users | /usr/bin/wc -l").Output() if err != nil { log.Error(err) return c.SendStatus(fiber.StatusInternalServerError)