Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Mac 10.4: Launchd Problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Pankaj" data-source="post: 597552" data-attributes="member: 48751"><p>Hi,</p><p></p><p>I am trying to run more than one programs through single .plist using launchd.</p><p>I don't know how to put program arguments. I have tried for that but not getting results. I am new user of Mac 10.4</p><p></p><p>My .plist format is:</p><p></p><p><?xml version="1.0" encoding="UTF-8"?></p><p><!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"></p><p><plist version="1.0"></p><p><dict></p><p> <key>Label</key></p><p> <string>com.domain.Agent</string></p><p> <key>OnDemand</key></p><p> <false/></p><p> <key>ProgramArguments</key></p><p> <array></p><p> <string>/usr/local/prgram1</string></p><p> <string>/usr/local/prgram2</string></p><p> </array></p><p> <key>RunAtLoad</key> </p><p> <true/></p><p> <key>StandardErrorPath</key></p><p> <string>/Library/Logs/Prg.log</string></p><p> <key>StandardOutPath</key></p><p> <string>/Library/Logs/Prg.log</string> </p><p></dict></p><p></plist></p><p></p><p></p><p>Plz help on this..</p><p></p><p>Thanks,</p><p>Pankaj.</p></blockquote><p></p>
[QUOTE="Pankaj, post: 597552, member: 48751"] Hi, I am trying to run more than one programs through single .plist using launchd. I don't know how to put program arguments. I have tried for that but not getting results. I am new user of Mac 10.4 My .plist format is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.domain.Agent</string> <key>OnDemand</key> <false/> <key>ProgramArguments</key> <array> <string>/usr/local/prgram1</string> <string>/usr/local/prgram2</string> </array> <key>RunAtLoad</key> <true/> <key>StandardErrorPath</key> <string>/Library/Logs/Prg.log</string> <key>StandardOutPath</key> <string>/Library/Logs/Prg.log</string> </dict> </plist> Plz help on this.. Thanks, Pankaj. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Mac 10.4: Launchd Problem
Top