|Man-of-the-match Cummins followed up his six-wicket haul by hitting the winning boundary [EPA]
Teenage fast bowler Pat Cummins sealed a dream Test debut when he hit the winning runs to take Australia to a two-wicket win in the second and final Test against South Africa at the Wanderers Stadium on Monday.
Australia chased down a target of 310 to share the series. Cummins, who took six for 79 in South Africa's second innings, was named man of the match.
Wicketkeeper Brad Haddin (55) and left-handed fast bowler Mitchell Johnson (40 not out) were mainly responsible for their team reaching the target, putting on 72 for the seventh wicket after all Australia's specialist batsmen had been dismissed with 95 still needed.
South African opening bowler Vernon Philander claimed his second five- wicket haul in his second Test to keep South Africa in with a chance of winning but did not get enough support from his more experienced teammates. Philander took five for 70.
Philander bowled Australian Michael Clarke in the fourth over of the day after only three runs had been added to the overnight 142 for three.
Australia suffered a major blow 20 runs later when Ricky Ponting was caught at second slip off Morne Morkel for 62, having added only eight runs off 34 balls as the bowlers took advantage of helpful overcast conditions.
But Mike Hussey and Haddin put together a watchful sixth wicket partnership of 50 and with the sun starting to beat down on the ground the odds seemed to be swinging slightly in favour of Australia.
There was yet another twist in a match of fluctuating fortunes when Philander was brought back shortly before tea and trapped Hussey leg before wicket for 39 with a ball which swung into the left-hander.
Hussey sought a television review but there was no reprieve as umpire Billy Bowden's decision was shown to be correct.
South Africa first innings 266
Australia first innings 296
South Africa second innings 339
Australia second innings (o'night 142-3)
S Watson b Philander 0
P Hughes c Kallis b Philander 11
U Khawaja c Kallis b Imran Tahir 65
R Ponting c Rudolph b Morkel 62
M Clarke b Philander 2
M Hussey lbw b Philander 39
B Haddin c Boucher b Philander 55
M. Johnson not out 40
P Siddle c Imran Tahir b Steyn 4
P Cummins not out 13
Total (eight wickets, 86.5 overs) 310
Fall of wickets: 1-0 2-19 3-141 4-145 5-165 6-215 7-287 8-292
It left Haddin and the hard-hitting Johnson to revive Australia's hopes.
Haddin seldom looked secure early on as he played and missed several times and was hit on the helmet by a bouncer from Dale Steyn.
But he grew in confidence after tea as he and Johnson attacked the bowling.
At tea, Australia were 88 runs short of victory, with only seven overs left before the second new ball was due. Haddin and Johnson played a flurry of attacking strokes to add 54 runs in those overs.
The partnership was worth 72 when Haddin edged Philander to wicketkeeper Mark Boucher in the third over with the new ball.
Peter Siddle chipped a catch to midwicket off Steyn in the next over and Cummins walked out with 18 still needed.
Following the example of Haddin and Johnson he batted positively. He was dropped on five, with nine runs needed when a powerful straight drive burst through bowler Steyn's hands and went for four.
With Australia needing just five runs, South African captain Graeme Smith brought on leg-spinner Imran Tahir and allowed Johnson to take a single by setting the field deep.
Cummins was beaten by a googly and South Africa appealed for leg before wicket. Umpire Ian Gould gave him not out.
South Africa sought a television review which showed that the decision was close enough to be an umpire's call. Two balls later Cummins hit a short-pitched ball to the midwicket boundary and ran to embrace Johnson.