the captain general had sent warning to the rajah that the cannons would be fired but the ordinary people who gathered to watch had received no warning and were frightened , and many fled into the forest .