Barnsley will visit fellow Championship club Middlesbrough in the second round of the EFL Cup on September 15 or 16.
Boro are managed by former Reds winger Neil Warnock and are due to welcome them in the league on October 3.
The draw for the third round has also been made, with the Reds going to Premier League Chelsea should they win at the Riverside Stadium.
Gerhard Struber's team won 1-0 at home to Nottingham Forest in their first game of the season yesterday.
Got a Story? - 01226 734262
Reds to visit Middlesbrough in next cup round
MP blocks free kids’ holiday meals Local football club blasted for signing convict Educating Yorkshire head settles into new Netherwood role Harry Gration signs off career outside Barnsley Town Hall Mass closures of schools across borough Motorcyclist honoured with poignant escort Town hall closed due to outbreak Drug-related deaths at ‘highest-ever’ levels ‘Fitting tribute’ to much-loved teacher Police uncover cannabis farm after burglary call