Skip to main content

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

readme42.com

Project details


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 details)

Uploaded Source

File details

Details for the file launchd-exec-2020.12.3.tar.gz.

File metadata

  • Download URL: launchd-exec-2020.12.3.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for launchd-exec-2020.12.3.tar.gz
Algorithm Hash digest
SHA256 b08f546ed0cd7a7381296bd740866be808e1e54f795c84e2b05af46a7a32814d
MD5 ae641bfe40c2a207e979f964852c1028
BLAKE2b-256 4577d92f4df1b638417e0aa9414f91292d7f654f21aa3892d8fec432104fbfb5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page