Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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:33

Calling 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:33

Calling 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