Will Bragg and Murray Goodwin helped Glamorgan recover from a shaky start to their second innings on a rain-disrupted third day of their LV= County Championship Division Two clash with Gloucestershire at Cardiff.
After a delayed start, the visitors concluded their first innings on 231 all out and a lead of 86.
Glamorgan's second innings looked to be in trouble at 36 for three before Bragg (29 not out) and Goodwin (26no) guided them to 80 for no further loss by the close, six runs behind.
Following a series of pitch inspections in wet conditions, play finally got under way at 2.30pm.
Gloucestershire added one run to their overnight total of 230 before their final wicket fell at the end of the day's second over as Matt Taylor (three) was ousted by a fine diving catch from wicketkeeper Mark Wallace off the bowling of Michael Hogan, who finished with figures of three for 62.
Glamorgan, having managed only 145 first time around, got their second innings under way in solid enough fashion, with Gareth Rees and Bragg seeing them to 27 for no loss.
But the weather then intervened once again, the players being forced to come off due to drizzle at 3.45pm as an early tea was taken.
And after play resumed at 4.55pm, the hosts swiftly lost two wickets in three balls without adding another run.
First Rees (14) was caught behind by Cameron Herring via a delivery from James Fuller (two for 22), who then bowled Stewart Walters for a duck.
Soon after, it was 36 for three as Will Gidman had Jacques Rudolph caught by Herring for five.
But Bragg and Goodwin then took their fourth-wicket stand to 44 as Glamorgan rallied before the umpires called stumps early due to bad light.