Cape Town - Fast bowler Mohammad Irfan joined forces with Pakistan's middle order to put the tourists in charge on the opening day of a two-day warm-up game against an Emerging Cape Cobras side on Sunday.
Irfan returned four for 20 and spinner Abdur Rehman took three for 31 to dismiss the Western Cape team for 156 runs after the home side won the toss and chose to bat.
Opening batsman Matthew Kleinvedlt put up the strongest resistance of the Emerging Cobras line-up, with 36 runs, and 19-year-old Keegan Petersen hit 32, but the young side struggled to get going and were eventually bundled out before tea.
In reply, the Pakistanis were reduced to 29 for three before Faisal Iqbal made 33 in a 58-run stand for the fourth wicket with captain Misbah-ul-Haq.
The tourists reached 127 for four when stumps were drawn, with Misbah on 44 not out and Asad Shafiq unbeaten on 21, and they trailed by 29 runs in their first innings with six wickets in hand.
Seam bowler Johannes Bothma led the Emerging Cobras attack with two for 19 to put the tourists on the back foot early on, before Pakistan's middle order stabilised the innings.
Pakistan face South Africa, who hold a 1-0 lead in the three-match series, in the second Test in Cape Town starting on Thursday.
Brief scores at close of play on the first day of a 15-a-side (11 bat, 11 field) match between Emerging Cape Cobras and Pakistan at the Western Province Cricket Club on Sunday:
Emerging Cape Cobras 156 in 47.5 overs (M. Kleinveldt 36, K. Petersen 32; Rahat Ali 2-27, Mohammad Irfan 4-20, Abdur Rehman 3-31).
Pakistan 127-4 in 36 overs (Faisal Iqbal 33, Misbah-ul-Haq 44 not out, J. Bothma 2-19).