From 40829dfbe936879a0d181fb5c429338ea6625635 Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Sat, 7 Jan 2023 22:26:25 +0530 Subject: [PATCH] add full path for users and wc binary --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7d42ccd..1c68109 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ func main() { app.Get("/online", func(c *fiber.Ctx) error { // Get the number of users online - out, err := exec.Command("users | wc -l").Output() + out, err := exec.Command("/usr/bin/users | /usr/bin/wc -l").Output() if err != nil { log.Error(err) return c.SendStatus(fiber.StatusInternalServerError)