stumts Posted February 3, 2013 Share Posted February 3, 2013 Criei um script e gostaria que ele fosse executado automaticamente durante o login do usuário através de um “launch agent” em ~/Library/LaunchAgents. Alguém poderia me explicar como criar esse "launch agente" para o meu script, Fonte: http://blogdopersonaltec.wordpress.com/2011/08/30/solucao-gratuita-para-acessar-discos-ntfs-no-lion/ Quote Link to comment Share on other sites More sharing options...
pernacabeluda Posted February 3, 2013 Share Posted February 3, 2013 Veja um exemplo <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>Label</key> <string>com.exemplo.script</string> <key>ProgramArguments</key> <array> <string>/caminho/para/o/script.sh</string> </array> </dict> </plist> Quote -Donations- PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3 PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com Premium Users HERE - Problems with Paypal HERE Link to comment Share on other sites More sharing options...
stumts Posted February 3, 2013 Author Share Posted February 3, 2013 Veja um exemplo <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>Label</key> <string>com.exemplo.script</string> <key>ProgramArguments</key> <array> <string>/caminho/para/o/script.sh</string> </array> </dict> </plist> Funcionou perfeitamente. Muito obrigado pela ajuda. Quote Link to comment Share on other sites More sharing options...