updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / freedt / envdir.8
blob56d774bf07ea47815e61cb1767d2427d045da8a9
1 .TH envdir 8
2 .SH NAME
3 envdir \- runs another program with environment modified according to files
4 in a specified directory.
5 .SH SYNOPSIS
6 .B envdir
7 .I dir
8 .I child
9 .SH DESCRIPTION
10 .I dir
11 is a single argument.
12 .I child
13 consists of one or more arguments. 
15 .B envdir
16 sets various environment variables as specified by files in the directory
17 named
18 .IR dir .
19 It then runs
20 .IR child .
23 .I dir
24 contains a file named
25 .I s
26 whose first line is
27 .IR t ,
28 envdir removes an environment variable named
29 .I s
30 if one exists, and then adds an environment variable named
31 .I s
32 with value
33 .IR t .
34 The name
35 .I s
36 must not contain =. Spaces and tabs at the end of
37 .I t
38 are removed. Nulls in
39 .I t
40 are changed to newlines in the environment variable. 
42 If the file
43 .I s
44 is completely empty (0 bytes long),
45 .B envdir
46 removes an environment variable named
47 .I s
48 if one exists, without adding a new variable.
49 .SH EXIT CODES
50 .B envdir
51 exits 111 if it has trouble reading
52 .IR dir ,
53 if it runs out of memory for environment variables, or if it cannot run
54 .IR child .
55 Otherwise its exit code is the same as that of
56 .IR child .
57 .SH SEE ALSO
58 supervise(8),
59 svc(8),
60 svok(8),
61 svstat(8),
62 svscan(8),
63 fghack(8),
64 multilog(8),
65 tai64n(8),
66 tai64nlocal(8),
67 setuidgid(8),
68 envuidgid(8),
69 softlimit(8),
70 setlock(8)