The Full Wiki

More info on Env

Env: Wikis

Advertisements
  

Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.

Encyclopedia

(Redirected to env article)

From Wikipedia, the free encyclopedia

env is a shell command for Unix and Unix-like operating systems. It is used to either print a list of environment variables or run another utility in an altered environment without having to modify the currently existing environment. Using env, variables may be added or removed, and the values of existing variables may be changed.

In practice, env has another common use. It is often used by shell scripts to launch the correct interpreter. In this usage, the environment is typically not changed.

Examples

To clear the environment for a new shell:

env - /bin/sh

To launch the X Window application xcalc and have it appear on a different display:

env DISPLAY=foo.bar:1.0 xcalc

Here is the code of a very simple Python script:

#!/usr/bin/env python
print "Hello World."

In this example, /usr/bin/env is the full path of the env command. The environment is not altered.

Note that it is possible to specify the interpreter without using env, by giving the full path of the python interpreter. A problem with that approach is that on different computer systems, the exact path may be different. By instead using env as in the example, the interpreter is searched for and located at the time the script is run. This makes the script more portable, but also increases the risk that the wrong interpreter is selected because it searches for a match in every directory on the executable search path.

External links

Advertisements


The ENV (Emission Neutral Vehicle) is an electric motorcycle prototype powered by an hydrogen fuel cell.[1] It is being developed by Intelligent Energy, a British company.[2]

Contents

Specifications

The vehicle and the fuel cell centre respectively weigh approximately 80 and 20 kilograms. It uses a proton-exchange membrane fuel cell to generate about 8 hp or 6 kilowatts. The Discovery Channel has indicated it can reach approximatelly 80 km/h and, on a full tank may ride continuously for about 4 hours and travel a distance of 160 kilometres. The motorcycle is a preproduction prototype, which will sell for approximately $6000.[3]

See also

References

  1. ^ "Fuel cell motorcycle". youtube.com. http://www.youtube.com/watch?v=buNjfuVicyo. Retrieved 2006-10-11. 
  2. ^ "Intelligent Energy". http://www.intelligent-energy.com/. Retrieved 2007-04-02. 
  3. ^ "Fuel cell motorcycle". youtube.com. http://www.youtube.com/watch?v=buNjfuVicyo. Retrieved 2006-10-11. 

External links


Advertisements






Got something to say? Make a comment.
Your name
Your email address
Message