Updated to Mavericks, and now launchd / Lingon cannot run Ruby scripts. I have files that must be executable (using chmod + x) and have the first lines set to
However, I keep getting the following error in the console:
com.apple.launchd.peruser.501[169] (craig.logging[754]): Exited with code: 1
This is a permissions error, but I have no idea which permissions to fix or change. The script works fine in the terminal with ruby.
It drives me crazy.
Update : Ruby scripts that cause the problem write their output to another file, for example, in my Dropbox. But I run the startup files as myself, who has administrator rights to write to these files. I donβt know what will go wrong ...]
Update 2 . I started using Applescript to launch the terminal and run my scripts, but it's rather clumsy and inelegant. Does anyone else have an understanding of why launchddd does not run scripts that write their output to files? Or is someone successful with scripts that do?
Update 3 . Errors were triggered due to encoding problems. I had to specifically set file.open (path / to / file, encoding: "UTF-8") for the scripts to work.
Thanks to everyone.
source share