execute script via launchd and log stdout, stderr
Project description
Installation
$ [sudo] pip install launchd-exec
$ [sudo] npm i -g launchd-exec
Examples
$ launchd-exec bash -l path/to/script.sh
launchd-exec.<hash> # label
$ pid="$(/bin/launchctl list | grep "$label" | awk '{print $1}')"
logs:
~/Library/Logs/launchd-exec/<hash>/out.log
~/Library/Logs/launchd-exec/<hash>/err.log
~/Library/Logs/launchd-exec/<hash>/launchd.plist
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
launchd-exec-2020.12.3.tar.gz
(1.8 kB
view hashes)