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

https://github.com/andrewpetrochenkov/launchd-exec

:rocket: execute script via launchd and log stdout, stderr
https://github.com/andrewpetrochenkov/launchd-exec

cli exec launchd macos

Last synced: about 1 month ago
JSON representation

:rocket: execute script via launchd and log stdout, stderr

Awesome Lists containing this project

README

          

[![](https://img.shields.io/badge/OS-Unix-blue.svg?longCache=True)]()
[![](https://img.shields.io/pypi/v/launchd-exec.svg?maxAge=3600)](https://pypi.org/project/launchd-exec/)
[![](https://img.shields.io/npm/v/launchd-exec.svg?maxAge=3600)](https://www.npmjs.com/package/launchd-exec)[![](https://img.shields.io/badge/License-Unlicense-blue.svg?longCache=True)](https://unlicense.org/)
[![](https://github.com/andrewp-as-is/launchd-exec/workflows/tests42/badge.svg)](https://github.com/andrewp-as-is/launchd-exec/actions)

### Installation
```bash
$ [sudo] pip install launchd-exec
```

```bash
$ [sudo] npm i -g launchd-exec
```

#### Examples
```bash
$ launchd-exec bash -l path/to/script.sh
launchd-exec. # label

$ pid="$(/bin/launchctl list | grep "$label" | awk '{print $1}')"
```

logs:
```
~/Library/Logs/launchd-exec//out.log
~/Library/Logs/launchd-exec//err.log
~/Library/Logs/launchd-exec//launchd.plist
```


readme42.com