Taufiq Umar completed his seventh test century as Pakistan closed in on a first innings lead by reaching 292 for 3 before bad light ended play on the third day of the second cricket test against Bangladesh in Dhaka.
Taufiq, who was dropped twice, hit 130 before paceman Nazmul Hossain broke through with the second new ball as the home side toiled for a wicket.
Former captain Younus Khan was unbeaten on 48 alongside skipper Misbah-ul Haq (26 not out) with Pakistan needing another 47 runs to overhaul Bangladesh's first innings total of 338.
Pakistan lead the two-match series 1-nil after a innings and 184-run victory in the first test.