Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ikenfin/uptimes
Bash script that prints uptime history.
https://github.com/ikenfin/uptimes
Last synced: about 2 months ago
JSON representation
Bash script that prints uptime history.
- Host: GitHub
- URL: https://github.com/ikenfin/uptimes
- Owner: ikenfin
- Created: 2015-05-28T06:50:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-28T07:05:42.000Z (over 9 years ago)
- Last Synced: 2023-09-04T06:21:40.728Z (over 1 year ago)
- Language: Shell
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# uptimes
**uptimes** is bash script that prints uptime history.
Script based on `last` program and `awk` script.
## Customizing
Script assumes that the program `which` located in `/bin/which`, you can customize it by setting [variable](https://github.com/ikenfin/uptimes/blob/master/uptimes.sh#L10):
which=/{YOUR_PATH}/which
## Example
Calling without arguments
`$ sh uptimes.sh`
up 10:18
up 2 day, 03:33Calling with `-s or --short` argument
`$ sh uptimes.sh -s`
Started at Wed May 27 2015 22:58:56 up 10:21
Started at Mon May 25 2015 19:21:32 up 2 day, 03:33Calling with `-f or --full` argument
`$ sh uptimes.sh -f`
Started at Wed May 27 2015 22:58:56 To Thu May 28 2015 09:42:33 up 10:43
Started at Mon May 25 2015 19:21:32 To Wed May 27 2015 22:54:32 up 2 day, 03:33