Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'RE: launchd' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
RE: launchd
Authored by: jaydisc on Jun 01, '05 07:04:35PM
I have a LaunchDaemon that uses osascript with an applescript as its argument. This is to run an AppleScript to update a DNS server of my newly changed dynamic IP. This is stored in /Library/LaunchDaemons and runs regardless of a user being logged in. It is set to rerun every 15 minutes:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/Proper$
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>com.xxxxxx.nsupdate</string>
        <key>LowPriorityIO</key>
        <true/>
        <key>Nice</key>
        <integer>1</integer>
        <key>ProgramArguments</key>
        <array>
                <string>osascript</string>
                <string>/usr/local/bin/nsupdate.scpt</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>ServiceDescription</key>
        <string>nsupdate service</string>
        <key>StartInterval</key>
        <integer>900</integer>
</dict>
</plist>


[ Reply to This | # ]