This will not work as SQLite triggers only work for writes within the same process; a trigger cannot execute code in another process.
But you could use triggers to write to a table (as any process that writes will run that trigger), and then poll that table from another process.