ios - launchd doesn't get triggered -


i've written mailcopy.plist file, supposed echo "gottriggered" log file, when mail arrives.

<?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>mail</string> <key>programarguments</key> <array>     <string>echo</string> <string>gottriggered</string> </array> <key>watchfiles</key> <array>     <string>/var/mobile/library/mail/protected\ index-wal</string> </array> <key>standardoutpath</key> <string>/var/log/mailcopy.log</string> <key>standarderrorpath</key> <string>/var/log/mailcopy_err.log</string> </dict> </plist> 

the file protected index-wal is (verified) changed whenever ipad (ios 9.02, jailbroken) receives incoming e-mail, no log, neither error nor regular written, when e-mail received.

i've loaded file using launchd load ~/library/launchagents/mailcopy.plist. loaded, because if try same command again, informs me, plist file loaded.

what missing?


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -