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

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

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.