| United States-English |
|
|
|
![]() |
HP 9000 Networking: Installing and Administering PPP > Chapter 4 Common pppd OptionsThe exec Option |
|
The exec option invokes a command or shell script when a link is brought up or taken down. Exec can be used on the link's calling or answering end and the command or shell script is executed immediately when the link changes state. The first argument of the command or shell script invoked by exec is either "up" or "down." The second argument is the peer's IP address. Exec's third and subsequent arguments are those with which pppd was invoked.
The entire parent environment is exported to exec scripts (the environment when pppd was invoked.) You should attempt to make the environment as small as possible because the environment will take up space for each pppd that is running. The exec script may also include variables that describe the current session. These variables include:
This example uses a Login shell script to invoke an executable shell script called $PPPHOME/Exec. $PPPHOME/Exec causes sendmail to run its queue whenever a remote system establishes a connection, possibly triggering a delivery to the remote system.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||