[launchd-dev] General questions on launchd

Scott Haneda talklists at newgeo.com
Mon Jun 1 12:42:47 PDT 2009


On Jun 1, 2009, at 12:22 PM, Damien Sorresso wrote:

>> Now, tail the log file, nothing, look at the syslog, every 10  
>> seconds:
>> Jun  1 12:15:11 macbook com.me.test.foo[1010]: /bin/bash: /Users/me/ 
>> Library/Application\ Support/launchd-test/tester: No such file or  
>> directory
>> Jun  1 12:15:11 macbook com.apple.launchd[123]  
>> (com.me.test.foo[1010]): Exited with exit code: 127
>>
>> I will look into the "WorkingDirectory" now, but I am stumped as to  
>> why this should not work as is.  Thanks again for the pointers.
>
>
> You're still escaping the space in "Application Support"  
> unnecessarily. launchd is not a shell interpreter, and the contents  
> of each element of ProgramArgument is passed directly to  
> posix_spawn(2), so you don't need to escape anything. Use this  
> instead:


Thank you, that did indeed solve it.
-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the launchd-dev mailing list