4

Sample script:

#!/bin/bash
echo "Hello?"
... (other things)

When run via launchd, it definitely runs (the other things are being done) but nothing shows up in system.log. I'm running OS 10.9.

I tried replacing that line with

syslog -s "HELLO?"

but that also shows nothing.

5

You can use the command loggerinstead.
For example logger "test" will result in
Nov 7 17:37:20 bounty.local napcae[82311]: test
in the file /var/log/system.log.

Altough you can use it, I'd recommend to write to your own log file.

  • 1
    Thanks for the answer. Any idea why exactly syslog didn't work? – Justin Mrkva Nov 7 '13 at 18:56
  • 1
    No, I tried it too. But I did not further inspect it so I can't tell you why it did not work. – napcae Nov 7 '13 at 22:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .