Advanced Topics: Automating Tenup

Since the most powerful uses of Tenup all have to do with automation, in a way all the previous sections of this manual have led us to this moment. Here, we will learn how to customize your Tenup settings so that it knows certain information about your account. This will allow you to include less information in each command. Finally, we will look at how to use Tenup to build and run shell scripts. In Windows, a shell script is called a Batch File. Batch files always end in a .bat file extension.

In Mac OS X and Linux, shell scripts go by a few different names, but both Shell Script or Bash Script are appropriate. Shell script files in Mac OS X and Linux end in the .sh file extension.

Shell scripts are extremely useful. They allow you to write many commands in a single file that will be executed in the order in which they appear. Often, these commands work together, each command using the results of the one that preceded it to accomplish a task that would be difficult or impossible with a single command. However, you can create a shell script that runs a series of completely unrelated commands as well. This section will detail the concepts and best practices needed for writing shell scripts that contain multiple Tenup commands.