Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uptime: should accept a filename as argument #6393

Open
cakebaker opened this issue May 11, 2024 · 2 comments · May be fixed by #6400
Open

uptime: should accept a filename as argument #6393

cakebaker opened this issue May 11, 2024 · 2 comments · May be fixed by #6400

Comments

@cakebaker
Copy link
Contributor

GNU uptime allows you to specify a file, whereas uutils uptime doesn't:

$ ../gnu/src/uptime /var/log/wtmp
 07:32:11  up   1:01,  995 users,  load average: 0.32, 0.35, 0.34
$ cargo run --features=unix uptime /var/log/wtmp
error: unexpected argument '/var/log/wtmp' found

Usage: target/debug/coreutils uptime [OPTION]...

For more information, try '--help'.

From the docs:

If an argument is specified, it is used as the file to be read to discover how many users are logged in. If no argument is specified, a system default is used (uptime --help indicates the default setting).

@AnirbanHalder654322
Copy link
Contributor

The since option in uptime also seems to be deprecated, its not listed in https://www.gnu.org/software/coreutils/manual/html_node/uptime-invocation.html . I want to pick this up, if anyone is not already working on it.

@cakebaker
Copy link
Contributor Author

@AnirbanHalder654322 sure, go ahead :)

@AnirbanHalder654322 AnirbanHalder654322 linked a pull request May 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants