[GRASSLIST:4346] altitude transect

Hello,

I want to generate a transect of the altitude between 2 points on an
elevation raster map. What is the best way to do this?

thanks!

Wouter