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
- Host: GitHub
- URL: https://github.com/andrewpetrochenkov/launchd-exec
- Owner: andrewpetrochenkov
- License: unlicense
- Created: 2019-02-28T19:00:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T21:02:37.000Z (over 5 years ago)
- Last Synced: 2025-12-16T02:34:51.216Z (6 months ago)
- Topics: cli, exec, launchd, macos
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[]()
[](https://pypi.org/project/launchd-exec/)
[](https://www.npmjs.com/package/launchd-exec)[](https://unlicense.org/)
[](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
```