Jim Jefferies has resigned as manager of Scottish League One side Dunfermline.
Scottish Cup holders St Johnstone will face Queen of the South in this season's fifth round, with the Old Firm kept apart.
Holders St Johnstone have been paired with fellow Premiership side Ross County in the fourth round of the Scottish Cup.
Rangers have been drawn away to fellow-Championship side Dumbarton in the third round of the William Hill Scottish Cup.
The draw for the third round of the Scottish League Cup has served up Dundee and Lanarkshire derbies.
Hearts swept into the second round of the Petrofac Training Cup with a 3-1 victory over Annan Athletic at Tynecastle.
Rangers will face a Glasgow derby against Queen's Park in the opening round of the Scottish League Cup.
Championship new boys Hibernian and Rangers have been paired together in the opening round of the SPFL Challenge Cup.
More of the games that matter on Sky Sports
Listen to the latest Premier League News
All the gossip from the morning editions
Predict six scores to win the £250,000 jackpot!
Out now! Free Sky Sports Soccer Quiz App