Joe Ansbro's first international try four minutes from time and Ruaridh Jackson's subsequent conversion settled the contest in which neither side really impressed.
Jonathan Sexton kicked two penalties for Ireland while Scotland's Chris Paterson, winning his 105th cap, managed one for the hosts.
In a match that began 15 minutes later than scheduled as a result of crowd congestion, Ross Rennie made his first Scotland start while Graeme Morrison returned in a team showing five changes for the clash.
Flanker Rennie was joined in the back row by Alasdair Strokosch and Johnnie Beattie, with Jim Hamilton at second row in place of Alastair Kellock, who was named on the bench, while scrum-half Rory Lawson began the EMC Test at Murrayfield as captain.
Ireland started their first of four World Cup warm-up fixtures with flanker Mike McCarthy making his debut as part of a largely second-choice scrum and full-back Rob Kearney and scrum-half Tomas O'Leary making their comebacks from injury.
Ireland held a slender 3-0 half-time lead as both sides looked rather disjointed during the first match of the season.
Scotland suffered an early blow after just 21 minutes when Nikki Walker went off with a head knock, with Jack Cuthbert coming on for his debut after 21 minutes.
Sexton's penalty from in front of the posts in the 33rd-minute was all that separated the sides at the break after Jim Hamilton was penalised for killing the ball.
Little improved in the second period although Scotland managed to level the scores in the 49th-minute after Denis Leamy was caught offside, allowing Paterson to kick the subsequent penalty.
Ireland went back in front with 15 minutes remaining as Sexton kicked for goal from 45 metres following an offside.
Paterson, usually unerringly accurate with the boot, sliced a straightforward penalty attempt wide before going off as Nick De Luca came on as one of three substitutes.
An indiscretion from prop Al Dickinson, who earlier came on for Allan Jacobsen, at the scrum granted Sexton another shot at goal, but the Ireland fly-half's effort fell short.
Scotland then burst into life four minutes from the end when De Luca rushed through before a long pass to Ansbro, who cut in off the wing for his first Test try.
Jackson converted successfully to seal victory.
Gilbert has released a new line of rugby cleats. The Gilbert Virtuo 8S is part of the exciting new product. Check it out.
The entire All Blacks apparel line has been updated for 2013/14. Check out the New Zealand All Blacks polo.
The Nike Tiempo is a solid rugby cleat and one of few styles still made from full-grain natural leather.
The Gilbert Blitz 8S rugby cleat is a great cleat at a great price of $69.99. Get a new pair of cleats today.
A cool looking all black rugby cleat with the high performance adidas is known for. Get in the Gear!
Wear the crest of the British and Irish Lions on your t-shirt. A great look for the summer.
$29.99
The All Blacks Performance t-shirt is black with hints of blue from the training jersey. Very Cool.
The New Zealand All Blacks training jersey for 2013/14. Get in the Gear!
The USA Rugby Pro Alternate rugby jersey is perfect for any fan of the Eagles. Get yours to wear during the summer Test matches.
The NEW All Blacks 2013/14 jersey has arrived at World Rugby Shop. Dare to wear the colors of the All Blacks.