Synchronet v3.16c-Win32 (install) has been released (Aug-2015).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
config:env [2018/02/28 16:48]
digital man [bash/sh] Mention /etc/profile and sudo -E
config:env [2018/04/23 17:15] (current)
digital man [bash/sh] Mention 'env' and 'printenv' utils for setting/testing environment changes
Line 46: Line 46:
  
 === /​etc/​profile === === /​etc/​profile ===
-In Debian and Debian-based Linux distributions (e.g. Ubuntu), you can also set environment variables in your ''/​etc/​profile''​ file, like so:+In Debian and Debian-based Linux distributions (e.g. Ubuntu), you can also set environment variables in your ''/​etc/​profile''​ file (and/or ''​~/​.profile''​), like so:
  
   export SBBSCTRL=/​sbbs/​ctrl   export SBBSCTRL=/​sbbs/​ctrl
 +  ​
 +=== env ===
 +You may also use the ''​env''​ utility to set an environment variable for a specific program invocation:
 +
 +  env SBBSCTRL=/​sbbs/​ctrl /​sbbs/​exec/​sbbs
 +  ​
 +Note: You can use the same syntax **without** the ''​env''​ part. The environment variable(s) specified will only be set for the life of the process being invoked.
  
 === sudo === === sudo ===
Line 54: Line 61:
  
   sudo -E sbbs   sudo -E sbbs
 +  ​
 +=== Testing ===
 +
 +You can use either of the following command-lines to test if a particular environment variable is set correctly (the environment variable value should be printed in response to either):
 +
 +  * ''​echo $SBBSCTRL''​
 +  * ''​printenv SBBSCTRL''​
 +
 +
    
 ==== csh/tcsh ==== ==== csh/tcsh ====

In Other Languages
QR Code
QR Code Environment Variables (generated for current page)