I require a script that:
Monitors a log file for $Command
This command will be accompanied by a username and value in the same line of the log.
The username and the command need to be passed to a daemon
the value will represent an index from a list
find "thing"
get username
get index
daemon echo "something . $username . $ValueThatIndexRelatesTo"
the above part needs to all be sent in quotations as it will be an echo type statement for the daemon.
list=("50 50 50", "10 10 10", "5 3 6")