file - PLIST seems correct, but execution shows no Results -


i wrote agent monitor critical system files: ag1-launchagents

#!/bin/bash  arg1=/system/library/launchagents  fswatch $arg1 "growlnotify -n "fswatch" -m "fswatch:changed:$arg1" -s" 

i created same file 6 other directories monitor them seperately changes , print notifications via growlnotify. scripts works fine using command line.

the next step autostart ag1-ag7 via *.plist file:

<?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.user.fswatch</string>     <key>programarguments</key>     <array>         <string>/library/scripts/shell/ag1-launchagent.sh</string>         <string>/library/scripts/shell/ag2-launchdaemons.sh</string>         <string>/library/scripts/shell/ag3-bin.sh</string>     <string>/library/scripts/shell/ag4-etc.sh</string>     <string>/library/scripts/shell/ag5-usrbin.sh</string>     <string>/library/scripts/shell/ag6-usrsbin.sh</string>     <string>/library/scripts/shell/ag7-sbin.sh</string>      </array>     <key>runatload</key>     <true/>     <key>nice</key>     <integer>10</integer>     <key>keepalive</key>     <false/>     <key>abandonprocessgroup</key>     <true/> </dict> </plist> 

but doesnt work.

the plist seems correct. checked via plutil. whenever run plist via launchctl load *.plist , change of folders agents should observe, not single notification.

note: tried single line in programarguments block, starting 1 *.sh file. didn't work either.

any thoughts on that?

problem seems solved.

i tried , got 1 instance of agent running. therefore assume, single plist file not able run of 7 instances.

i think either have abandon idea , begin scratch using different technique or implement 7 different plist files. not faishonable solution.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -