deemon

1.8.0 • Public • Published

deemon

npm version

Utility to run a process in the background and attach to it

Usage

npx deemon COMMAND [ARGS]

Example

asciicast

npx deemon /bin/bash -c "while true; do date; sleep 1; done"

Ctrl C will stop the current session and leave the process running in the background. Simply run the same command again to attach to it:

npx deemon /bin/bash -c "while true; do date; sleep 1; done"

Ctrl D will stop the current session and the background process. You can also simply kill the background process with the --kill flag:

npx deemon --kill /bin/bash -c "while true; do date; sleep 1; done"

Or you can force a restart of the background process and attach to that with the --restart flag:

npx deemon --restart /bin/bash -c "while true; do date; sleep 1; done"

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.8.06,495latest

Version History

VersionDownloads (Last 7 Days)Published
1.8.06,495
1.7.20
1.7.14
1.7.01
1.6.00
1.5.00
1.4.04
1.3.00
1.2.00
1.1.00
1.0.00

Package Sidebar

Install

npm i deemon

Weekly Downloads

6,504

Version

1.8.0

License

MIT

Unpacked Size

15.6 kB

Total Files

5

Last publish

Collaborators

  • joaomoreno