Pakistan left Bangladesh at a troublesome 107/5 at stumps on the second day of the second test on Thursday, raising the prospect of ending its win drought in the tour after it declared the first innings on 557/8.
Trailing by 450 runs, Bangladesh still needs 251 runs to avoid the follow-on with Shakib Al Hasan batting on 14.
The dismissal of Mushfiqur Rahim (12) in the penultimate ball of the day, which prompted the umpires to draw the bails for the day, extended the agony of the hosts on what was a pretty disappointing day.
Imrul Kayes scored 32 while Mahmudullah made 28.
Leg-spinner Yasir Shah (2 for 15) and fast bowler Junaid Khan (2 for 26) picked up two wickets.
Pakistan rode a double century by Azhar Ali to take command of the final Test.