https://github.com/cflems/daemonize
Utility to send shell commands to the background
https://github.com/cflems/daemonize
Last synced: about 1 month ago
JSON representation
Utility to send shell commands to the background
- Host: GitHub
- URL: https://github.com/cflems/daemonize
- Owner: cflems
- License: mit
- Created: 2017-07-14T20:30:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-21T17:05:50.000Z (about 5 years ago)
- Last Synced: 2025-02-25T10:52:06.200Z (10 months ago)
- Language: C
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# daemonize
A utility to send shell commands to the background.
### Instant Install
Linux/BSD/\*nix other than OSX
```bash
curl -s https://raw.githubusercontent.com/cflems/daemonize/master/daemonize.c | sudo gcc -xc -o /usr/bin/daemonize -
```
OSX
```bash
curl -s https://raw.githubusercontent.com/cflems/daemonize/master/daemonize.c | sudo gcc -xc -o /usr/local/bin/daemonize -
```
### Usage
```bash
daemonize [-d|--chdir] [-n|--noclose] [-1|--log-stdout ] [-2|--log-stderr ]
```
__command__: *(Required)* The command to execute as a daemon.
__--noclose__: *(Optional)* Leaves input and output streams to the current terminal session open. Individual streams are overridden with logging options.
__--chdir__: *(Optional)* Changes directory to / before executing
__--log-stdout __: *(Optional)* Reroutes the program's stdout to the given file before daemonizing.
__--log-stderr __: *(Optional)* Reroutes the program's stderr to the given file before daemonizing.