Previous Page
Next Page

Passing Arguments

Passing arguments might sound like a technique to help people get along, but in reality it's a way to get additional information into a script. Command-line arguments are words or phrases that follow the name of the script when it is run from the command line. In this section, you'll look at two methods for obtaining run time information: command-line arguments and text file data. You can use these two sources of information to modify the way a script runs. Let's first look at command-line arguments and see how to change the behavior of a script.


Previous Page
Next Page