How File Redirection Works
There are a few general topics that concern CGI programming that will be helpful in understanding the rest of this book, and in developing CGI programs. Most of this information isn’t specific to CGI, but rather is general Perl or UNIX information that is used whenever you write CGI programs.
One of the core concepts of UNIX is file redirection. All UNIX shells support redirection, and the file redirection metaphor is utilized in most UNIX scripting languages as well (even when they’re running on other platforms). Before I can explain file redirection, I have to explain standard input and standard output.
Most command-line programs running under UNIX accept their input from standard input, and send their output to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access