Postpublished at 22:31 British Summer Time 24 September 2014
That's all from me, good night.
Quarter-final draw: Rangers v St Johnstone, Hibernian v Dundee United, Aberdeen v Hamilton Academical, Celtic v Partick Thistle
Hamilton beat Motherwell on penalties
Both sides had a man sent off in Lanarkshire derby
Guidetti, Commons & Eckersley og give Celtic win
Hearts' Sow missed spot-kick at Celtic Park
Fojut heads United winner in Dundee derby
Boyle sent off & Stewart missed penalty for Dundee
Andy Campbell
That's all from me, good night.
Please join us again at the weekend for more Scottish football coverage, with a full card of Premiership fixtures on Saturday and Championship matches on Sunday and Monday.
There will be highlights of Celtic v Hearts on the BBC Sport website later tonight and highlights of Dundee United v Dundee and Hamilton Academical v Motherwell will be available tomorrow.
So, the two remaining Scottish Championship sides have home ties in the quarter-finals. Two all-Premiership ties, including a Glasgow derby between Celtic and Partick Thistle.
The quarter-finals will be played on the 28 and 29 October.
Rangers v St Johnstone
Hibernian v Dundee United
Aberdeen v Hamilton Academical
Celtic v Partick Thistle
These sides enter the quarter-final draw, which will shortly take place at Tanandice:
Aberdeen, Celtic, Dundee United, Hamilton Academical, Hibernian, Partick Thistle, Rangers, St Johnstone.
A dramatic end to the Lanarkshire derby and it is Hamilton who win the shoot-out to go through to the quarter-finals.
Hamilton 6-5 Motherwell (Craig Watson scores)
Hamilton 5-5 Motherwell (Simon Ramsden misses)
Hamilton 5-5 Motherwell (Dougie Imrie scores)
Hamilton 4-5 Motherwell (Josh Law scores)
Hamilton 4-4 Motherwell (Darren Lyon scores)
Hamilton 3-4 Motherwell (Jack Leitch scores)
Hamilton 3-3 Motherwell (Nicky Devlin scores)
Hamilton 2-3 Motherwell (Henrik Ojamaa scores)
Hamilton 2-2 Motherwell (Ali Crawford scores)
Hamilton 1-2 Motherwell (Stephen McManus scores)
Hamilton 1-1 Motherwell (Grant Gillespie scores)
Hamilton 0-1 Motherwell (John Sutton scores)
Richard Wilson
BBC Scotland at New Douglas Park
"It will need to be penalties to separate the two sides at New Douglas Park."
No goals after 120 minutes. It's going to be penalties.
Louis Longridge's shot for Hamilton takes a deflection to carry it wide of the post in the final chance of the match.
Just a few minutes remaining in extra-time at New Douglas Park. Will there be a winner?
Louis Longridge goes down on the edge of the Motherwell penalty area. There are some shouts for a penalty from the home crowd but play rages on.
John Sutton tries to get on to a through ball from Motherwell defender Stephen McManus but the striker goes too soon and is flagged offside.
Hamilton's Grant Gillespie requires treatment on a head knock. He's soon able to return to the action.
Stuart in Old Kilpatrick: "Would love a Glasgow derby for the Jags in the Quarter final, either Celtic or Rangers at Firhill bring it on."
Michael McGovern collects the ball to take the sting out of a Motherwell attack.
Back underway at New Douglas Park.
Still no goals after 105 minutes. Both sides now down to 10 men. Unless there is a goal in the final quarter-hour, there will be a penalty shoot-out.