Here is a reference to the singing of "Highland Laddie" at the capstan in an effort to move the grounded ship "Peacock" into deeper water on April 22nd, 1835, near the Gulf of Mazeira.
http://books.google.com/books?id=LW_XAAAAMAAJ&pg=PA396&dq=capstan+songs+1840s&lr=&cd=25#v=onepage&q=&f=false