Skip to content

The "uptime" cmd from the default config is not working #1197

@ezradiniz

Description

@ezradiniz

What's broken?

The uptime cmd is not working properly, it is showing exit status 1

But it works if I remove the empty string "" from the args:

args: [""]
cmd: "uptime"

Args without ""

args: []
cmd: "uptime"

Activity

FelicianoTech

FelicianoTech commented on Apr 9, 2022

@FelicianoTech
Collaborator

What version of wtf are you running?
What's your OS and OS version?


This is working for me out of the box so I'm trying to determine what might be different here.

brandonwardlaw

brandonwardlaw commented on May 16, 2022

@brandonwardlaw

Same issue here. Noted tweak above works for me.

System info:

❯ uname -a
Linux <hostname> 5.15.0-30-generic #31-Ubuntu SMP Thu May 5 10:00:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:        22.04
Codename:       jammy
❯ wtfutil --version
0.41.0 (2021-12-28T22:54:23Z)
umop3plsdn

umop3plsdn commented on Mar 10, 2025

@umop3plsdn

just wanted to comment and say this issue still exists for some reason with a new install

toby-bro

toby-bro commented on Mar 29, 2025

@toby-bro
Contributor

Yes it is because of this :

uptime:
args: [""]

did you do a local install with go install . to install wtf ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bug"Houston, we've had a problem."

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @senorprogrammer@umop3plsdn@Seanstoppable@FelicianoTech@brandonwardlaw

      Issue actions

        The "uptime" cmd from the default config is not working · Issue #1197 · wtfutil/wtf