The semtool program relies on command line arguments to determine its behavior. This is what makes it especially useful when called from a shell script. All of the capabilities are provided, from creating and manipulating, to changing the permissions and finally removing a semaphore set. It can be used to control shared resources via standard shell scripts.