os

MODULE

os

MODULE SUMMARY

Operating System Specific Functions

DESCRIPTION

The functions in this module are operating system specific.
Careless use of these functions will result in programs that will
only run on a specific platform. On the other hand, with careful use
these functions can be of help in enabling a program to run on
most platforms.

These two functions look up an executable program given its name
and a search path, in the same way as the underlying operating
system. find_executable/1 uses the current execution path (i.e.,
the environment variable PATH on Unix and Windows).
Path, if given, should conform to the syntax of execution
paths on the operating system.
The absolute filename of the executable program Name is
returned, or false if the program was not found.

Returns the process identifier of the current Erlang emulator
in the format most commonly used by the operating system
environment. Value is returned as a string containing the
(usually) numerical identifier for a process. On Unix, this is
typically the return value of the getpid() system
call. On VxWorks, Value contains the task id (decimal
notation) of the Erlang task. On Windows, the process id as
returned by the GetCurrentProcessId() system call is
used.