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

Result of uptime is parsed non-universally. #585

Closed
bartosz-witkowski opened this issue Sep 12, 2014 · 3 comments
Closed

Result of uptime is parsed non-universally. #585

bartosz-witkowski opened this issue Sep 12, 2014 · 3 comments

Comments

@bartosz-witkowski
Copy link

uptime | awk '{print $12}' may fail to parse anything if server up time is less then 24h a better way to process that would be: uptime | awk '{print $NF }'

Offending line:

"uptime | awk '{print $12}' | cut -d ',' -f 1"

@yegor256
Copy link
Owner

it's a duplicate of #576

@alex-palevsky
Copy link
Contributor

@yegor256 only @bartosz-witkowski can close this issue, since he opened it

@yegor256
Copy link
Owner

it's a duplicate. I'm closing

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

No branches or pull requests

3 participants