switch

Process::UID.switch â fixnumProcess::UID.switch {|| block} â object Class Public methods Switch the effective and real user IDs of the current process. If a block is given, the user IDs will be switched back after the block is executed. Returns the new effective user ID if called without a block, and the return value of the block if one is given.

abort

abortKernel::abort([msg])Process::abort([msg]) Class Public methods Terminate execution immediately, effectively by calling Kernel.exit(false). If msg is given, it is written to STDERR prior to terminating.

daemon

Process.daemon() â 0Process.daemon(nochdir=nil,noclose=nil) â 0 Class Public methods Detach the process from controlling terminal and run in the background as system daemon. Unless the argument nochdir is true (i.e. non false), it changes the current working directory to the root (â/â). Unless the argument noclose is true, daemon() will redirect standard input, standard output and standard error to /dev/null. Return zero on success, or raise one of Errno::*

detach

Process.detach(pid) â thread Class Public methods Some operating systems retain the status of terminated child processes until the parent collects that status (normally using some variant of wait(). If the parent never collects this status, the child stays around as a zombie process. Process::detach prevents this by setting up a separate Ruby thread whose sole job is to reap the status of the process pid when it terminates. Use detach only when you do not intent to explicitly wa

egid

Process.egid â fixnumProcess::GID.eid â fixnumProcess::Sys.geteid â fixnum Class Public methods Returns the effective group ID for this process. Not available on all platforms. Process.egid #=> 500

egid=

Process.egid = fixnum â fixnum Class Public methods Sets the effective group ID for this process. Not available on all platforms.

euid

Process.euid â fixnumProcess::UID.eid â fixnumProcess::Sys.geteuid â fixnum Class Public methods Returns the effective user ID for this process. Process.euid #=> 501

euid=

Process.euid= user Class Public methods Sets the effective user ID for this process. Not available on all platforms.

exec

exec([env,] command... [,options]) Class Public methods Replaces the current process by running the given external command. command⦠is one of following forms. commandline : command line string which is passed to the standard shell cmdname, arg1, ... : command name and one or more arguments (no shell) [cmdname, argv0], arg1, ... : command name, argv[0] and zero or more arguments (no shell) If single string is given as the command, it is taken as a command

exit

exit(status=true)Kernel::exit(status=true)Process::exit(status=true) Class Public methods Initiates the termination of the Ruby script by raising the SystemExit exception. This exception may be caught. The optional parameter is used to return a status code to the invoking environment. true and FALSE of status means success and failure respectively. The interpretation of other integer values are system dependent. begin exit puts "never get here" rescue SystemExit puts "rescu