Simon Harmer ran through Bangladesh's tail and South Africa knocked off the 12 runs required to win the first Test by nine wickets on Thursday, taking a 1-0 lead in the teams' two-match series.