Chapter�燙onfiguration

Starting on the Right Foot

Table of Contents

广告:个人专属 VPN,独立 IP,无限流量,多机房切换,还可以屏蔽广告和恶意软件,每月最低仅 5 美元

What Should Be Configurable?

Where Configurations Live

Run-Control Files

Case Study: The .netrc File
Portability to Other Operating Systems

Environment Variables

System Environment Variables
User Environment Variables
When to Use Environment Variables
Portability to Other Operating Systems

Command-Line Options

The -a to -z of Command-Line Options
Portability to Other Operating Systems

How to Choose among the Methods

Case Study: fetchmail
Case Study: The XFree86 Server

On Breaking These Rules

Under Unix, programs can communicate with their environment in a rich variety of ways. It's convenient to divide these into (a) startup-environment queries and (b) interactive channels. In this chapter, we'll focus primarily on startup-environment queries. The next chapter will discuss interactive channels.


 

 

 

Prev  Up Next

Ad-hoc Code Generation  Home 燱hat Should Be Configurable?