Found out how to put a command in a heredoc.  Stil doesn't work tho.