Thanks for your query
Since your mother has stomach cancer
the passage of food may be difficult or near impossible and troublesome.
Your doctor has advised putting an external pipe which will help you give her food.
I would suggest you to follow your doctors advice and get a external feeding pipe put to her so that she will receive food and nutrition.
Hope this answer is helpful.