title: How can I record my bash session as an executable?
body: <p>I want to login to a server.  Then run a series of bash commands installing programs and setting configurations.  I want these commands to be recorded into an executable script that I can subsequently run on similar servers to automate setup.  How do I do this?</p>
  
  <p>I'm familiar with the <code>script</code> command, but this is not what I want because it does not create executable scripts.</p>