CLEVELAND -- Ubaldo Jimenez pitched six shutout innings while Yan Gomes and Asdrubal Cabrera drove in two runs apiece, and the Cleveland Indians survived a shaky ninth inning for a 4-3 victory over the Baltimore Orioles on Tuesday night.
Jimenez (10-9) has allowed three earned runs or less in eight consecutive starts.
The right-hander held Baltimore to four hits and worked out of a bases-loaded jam in the sixth.
Gomes' two-run double was the key hit in Cleveland's sixth. Cabrera had sacrifices flies in the fourth and sixth.
Orioles starter Chris Tillman (15-5) allowed four runs in 5 1-3 innings.
The right-hander has one win in his last six starts.
The Orioles got back in the game in the ninth against Indians closer Chris Perez, who pitched in a non-save situation.
Nate McLouth's three-run homer followed singles by Nick Markakis and J.J. Hardy to start the inning.
McLouth homered on a 3-2 pitch. Perez struck out Brian Roberts and Manny Machado before facing Chris Davis, who leads the majors with 47 home runs.
Perez retired the Orioles' slugger on a ground ball to end the game.
Perez pleaded no contest and was convicted of misdemeanor drug abuse Tuesday for marijuana shipped to his home in the family dog's name. The incident took place in June.
Both teams are battling for the second wild card spot in the American League.
Baltimore entered Tuesday's play two games behind while Cleveland was 3½ games off the pace.
The Indians, who had lost six of seven entering the game, needed some good news.
Justin Masterson, the team's No. 1 starter, will miss at least one start because of a strained left oblique.
The right-hander could miss the rest of the season.
The Orioles loaded the bases in the sixth on a single and two walks, but Jimenez retired Michael Morse on a tapper to the mound to end the inning.
Jimenez went 1-4 in August despite a 3.10 ERA while receiving a total of seven runs of support.
He had dropped four of his last five starts. Jimenez, who struck out four, has recorded 32 strikeouts in 24 2/3 innings over his last four games.
Cabrera's sacrifice fly gave Cleveland the lead in the fourth after Jason Kipnis and Carlos Santana walked to start the inning.
Santana led off the sixth by drawing another walk and took third on Michael Brantley's double into the left field corner.
Cabrera's second sacrifice fly scored Santana and Gomes' double later scored Brantley and pinch-runner Matt Carson.
The Orioles, who are 3-5 on a nine-game trip that ends Wednesday, are 8-12 since Aug. 12.
- LHP Zach Britton, called up from Triple-A Norfolk on Monday, will start for the Orioles in Wednesday's series finale. The other five starters will be moved back one day.
- A college reunion took place before the game when Indians OF Drew Stubbs caught the ceremonial first pitch from Browns RB Chris Ogbonnaya. The two were roommates at the University of Texas.
- Indians OF Ryan Raburn (left Achilles soreness) was activated from the 15-day DL. He had been sidelined since Aug. 19.
- The Indians recalled RHPs Carlos Carrasco, Chen-Chang Lee, Vinnie Pestano, and Josh Tomlin from Triple-A Columbus. Tomlin underwent Tommy John surgery on his right elbow in August 2012.
- The Orioles recalled 2B Jonathan Schoop, OF Henry Urrutia and RHP Josh Stinson from Norfolk, and 2B Ryan Flaherty from Single-A Frederick.