« Return to Thread: launchd question

Re: launchd question

by Axel Luttgens :: Rate this Message:

Reply to Author | View in Thread

On 27/02/07 21:45, Christopher Hunt wrote:

> Hi there,
>
> I've got a problematic launchd plist and I was wondering if someone  
> could help. I'm trying to execute osascript -e <command> via launchd  
> and it reports an error (an abort) in the system.log file. More  
> specifically:
>
> launchd[4108]: com.classactionpl.restartvision: exited abnormally:  
> Abort trap
>
> Here's the plist:
>
> [...]
>     <key>OnDemand</key>
>     <true/>


(anecdotical)
This is the default.
But from your description in subsequent posts, you don't seem to need an
on-demand behavior.
I would thus set this one to false.

>     <key>ProgramArguments</key>
>     <array>
>         <string>osascript</string>


Wouldn't a full path (ie /usr/bin/osascript) be needed here?

>         <string>-e</string>
>         <string>tell application "World" to quit</string>
>     </array>
> [...]
>
> Debug etc. doesn't yield more info.
>
> Any ideas?


Well, frankly, I would stay with cron... ;-)
Since 10.4 and up to 10.4.8, I have been unable to *reliably* use
launchd for tasks needing to be launched at regular intervals; it
somehow works, if one may allow some timing inacurracies, but sometimes
with big surprises.

HTH,
Axel
_______________________________________________
MacOSX-admin mailing list
MacOSX-admin@...
http://www.omnigroup.com/mailman/listinfo/macosx-admin

 « Return to Thread: launchd question