Мне нужно было только добавить параметр --sync
со страницы руководства xdotool
--sync
Block until there are results. This is useful when you are launching an application want want to wait until the application window is visible.
Что дает правильную команду
application & xdotool search --sync --name string_contained_in_the_window_title > file
как в моем случае
firefox & xdotool search --sync --name firefox > firefox.txt
ТАБЛИЦА row_level_security_filters
наверняка уже имеет СТОЛБЦ filter_type
; а у вас не может быть двух столбцов с одинаковым именем?