Bath snuck past Glasgow 23-18 in their Pool 3 Heineken Cup match at The Recreation Ground on Saturday afternoon bringing an end to their European campaign.
The result means that both teams cannot progress to the play off phase of the Heineken Cup.
The victory was Bath's second victory in the Heineken Cup this season and moves them off the bottom of Pool Three.
Scotland fly-half Duncan Weir kicked the visitors into the lead but Glasgow were soon back behind their own posts after Tom Biggs intercepted in midfield for the hosts and raced clear to score.
Olly Barkley converted for Bath and then traded penalties with Weir but the hosts went into the break 10-6 ahead.
Man of the Match Ben Skirving got the second-half off to a flying start for Bath, touching down after a powerful forward drive.
Glasgow responded with a try from Tommy Seymour and replacement Scott Wight's conversion brought the Scottish side right back into the game.
A neat blindside move saw Rob Harley touchdown to give Glasgow the lead but two late Barkley penalties won the game for Bath.
Final Score Bath 23 (10) Glasgow 18 (6)
Tries: Biggs, Skirving
Conversions: Barkley 3
Penalties: Barkley 2
Tries: Seymour, Harley
Penalties: Weir 2
Referee: Christophe Berdos (France)
Bath Rugby: J Cuthbert; M Carraro, O Barkley, M Banahan, T Biggs; S Donald, C Cook; C Beech, P Dixon, D Wilson, D Attwood, R Caldwell, A Beattie [capt], G Mercer, B Skirving
Replacements: L Mears, D Flatman, A Perenise, F Louw, S Taylor, M Claassens, T Heathcote, S Vesty
Glasgow Warriors: R Lamont; T Seymour, S Hogg, G Morrison, C Shaw; D Weir, C Cusiter; J Welsh, P MacArthur, E Kalman, R Gray, A Kellock [capt], R Harley, C Fusaro, J Barclay
Replacements: D Hall, G Reid, R Grant, T Ryder, H Pyrgos, R Wilson, P Murchie, S Wight
With thanks to ERCRugby.