Substitute Paul McLeod snatched the winner 14 minutes from time to give Hamilton a deserved win over East Stirlingshire in the CIS Insurance Cup.
McLeod, on the pitch for six minutes, stroked home from close range.
Richard Offiong had broken the deadlock after 30 minutes when he headed in a Marc McJimpsey cross from close range.
Kevin McBride equalised from the spot after Alex Neil felled Mark McKenzie, but McLeod struck and Shire had Kevin Struthers sent off for swearing.
Hamilton: Cerny, Parratt, Easton, McCarthy, Elebert, Wake (Gilhaney 55), McJimpsey (Gibson 55), McArthur, Offiong, Neil, Davison (McLeod 70).
Subs Not Used: Taylor, Halliwell.
Goals: Offiong 30, McLeod 76.
East Stirling: Hill, Doyle, Kevin McBride, Moffat, Thywissen, Brownlie, McKenzie, Brand, Savage (Struthers 55), McLaren (Kelly 83), Paul McBride. Subs Not Used: King, Ure, Tony Mitchell.
Sent Off: Struthers (86).
Booked: Moffat, McLaren.
Goals: Kevin McBride 57 pen.
Ref: C Boyle (Scotland).