Heat the oil in a shallow pan and add mustard seeds. When they stop spluttering add the curry leaves and green chillies and sauté a little. Now add the onion and fry till it turns soft. Add the green beans, salt to taste and cook till they are done. Add the grated coconut and mix well. Cook for another minute and then turn off the flame. Serve hot with rice or chapatis