Brave Arbroath gave Hearts an almighty fright at Tynecastle but saw their hopes of a famous victory dashed by a four- minute blitz by the Jambos.
Dunfermline will travel south to face Ayr United in the tie of the William Hill Scottish Cup third round.
The Scottish Professional Football League has confirmed the format and seedings for next season's Betfred League Cup competition.
Summer football is on its way to Scotland thanks to a major revamp of the Scottish League Cup.
Senior media executive Murdoch MacLennan is the new chairman of the Scottish Professional Football League, replacing the outgoing Ralph Topping.
Hamilton eased into the second round of the League Cup after Dougie Imrie marked his competitive debut with a goal in a 2-1 win against Arbroath.
Rangers continued their progress in this season’s Petrofac Training Cup courtesy of a 2-0 victory over East Fife at New Bayview.
Allan Moore suffered a nightmare in his first match in charge of Arbroath as Aberdeen thrashed his side 7-0 at Gayfield.
Arbroath are looking for a new manager just a week before pre-season starts after boss Paul Sheerin left for Aberdeen.
Gary Naysmith thinks his Fifers are hitting top form at the right time in their pre-season campaign.