Nap
Pause utility. Free software written in Java.
Latest version: 0.2 (2007-05-03)
Nap pauses for a specified duration, and displays a countdown. Features varying levels of verbosity. Free software written in Java.
System Requirements
A Java Runtime Environment (JRE 5.0+) is required. The latest version of the JRE can be downloaded from http://java.sun.com/j2se.
License
Nap is released with source code under the GNU General Public License (version 2).
Source Code
- src/nap/Nap.java
Documentation
Usage Syntax
java -jar Nap.jar
<switches>
[duration]
<Switches>
−[0|1|2|3|4] |
Verbosity level: −0 is least verbose; −4 is most verbose (default verbosity level is 2 ) |
−s |
Silent mode; equivalent to −0 |
−v |
Verbose mode; equivalent to −4 |
−u |
Allow user to abort countdown |
−p |
Pause before exiting |
[duration]
The nap duration, in the form HH:mm:ss.SSS (see note 1).
Notes
- Nap is very flexible when parsing the specified duration. For example, two minutes can be given as
00:02:00.000
or2:00
or2:
or even120
.
Examples
-
Nap for 24 hours, at verbosity level 3:
java -jar Nap.jar
−3
24:00:00
-
Nap for 2.5 seconds, in silent mode:
java -jar Nap.jar
−s
2.5
-
Nap for 1 minute, at verbosity level 4, and allow user to abort countdown:
java -jar Nap.jar
−4
−u
1:00
-
Nap for 10 seconds, and pause before exiting:
java -jar Nap.jar
−p
10
Feedback?
Comments, suggestions, and bug reports are welcomed! Please send any feedback you have about Nap to , or visit the Nap homepage at http://naptime.sourceforge.net/ to post a message, bug report, or download the latest version of Nap.