There are few scripts that neither receive input nor produce output. These are primarily scripts that run a series of commands in a preconfigured, batch-oriented manner. Most scripts by IT professionals, however, require either input or output, and most scripts need both. Clearly, for maximum flexibility, scripts must receive input. To maximize utility, most scripts have to produce output.
The form of input and the manner of output are part of the design process and therefore are the purview of the scriptwriter. Traditional input takes the following forms:
Read from the command line
Read from a ...