All Mike Redmond wanted Jarred Cosart to do Tuesday night was to try to match Adam Wainwright with as many scoreless innings as he could. Cosart did the National League’s starting pitcher in the All-Star Game one better. He put up seven zeroes to Wainwright’s six, guiding the Marlins to a 3-0 shutout of the St. Louis Cardinals in front of 22,703 at Marlins Park. Jarrod Saltalamacchia’s RBI single and a two-out, two-run home run by Donovan Solano off the left-field foul pole in the fifth inning turned out to be all the offense the Marlins (59-60) needed to beat St. Louis, which entered the day with a half-game lead on the Giants for the final wild-card spot. Cosart, who missed what would have been his second start for the Marlins last week because of left oblique soreness, gave up only three hits and one walk in his first appearance in 11 days. He struck out three, threw 63 of his 102 pitches for strikes and picked up his first win since he beat the Rangers on July 7. “You never really know when a guy takes that many days off what you’re going to get, but I think the time off for him was good,” Redmond said. “He threw just enough breaking balls to keep guys off his fastball, some nice changeups, hit his spots. These guys can hit and put up the big number, and he did a nice job shutting them down.” Bryan Morris and Mike Dunn closed out the ninth as the Marlins gave closer Steve Cishek, who had pitched in four of the previous five games, the night off. The Cardinals (62-56) brought the tying run to the plate with two outs before Dunn recorded the final out. He struck out Matt Adams swinging to pick up his first save of the season and fourth of his career. It was the 13th shutout of the season for the Marlins, four fewer than the franchise record set in 2010. But the story Tuesday was Cosart. “Just wanted to get through healthy,” said Cosart, who said he still felt a little tight. “Obviously, it’s a huge win against a team that’s in front of us in a playoff race against one of the best pitchers in baseball. It’s a great team win.”