execute commands from log