1shell(1F) FMLI Commands shell(1F)
2
3
4
6 shell - run a command using shell
7
9 shell command [command] ...
10
11
13 The shell function concatenate its arguments, separating each by a
14 space, and passes this string to the shell ($SHELL if set, otherwise
15 /usr/bin/sh).
16
18 Example 1 A sample output of shell command.
19
20
21 Since the Form and Menu Language does not directly support background
22 processing, the shell function can be used instead.
23
24
25 `shell "build prog > /dev/null &"`
26
27
28
29
30 If you want the user to continue to be able to interact with the appli‐
31 cation while the background job is running, the output of an executable
32 run by shell in the background must be redirected: to a file if you
33 want to save the output, or to /dev/null if you don't want to save it
34 (or if there is no output), otherwise your application may appear to be
35 hung until the background job finishes processing.
36
37
38
39 shell can also be used to execute a command that has the same name as
40 an FMLI built-in function.
41
42
44 The arguments to shell will be concatenate using spaces, which may or
45 may not do what is expected. The variables set in local environments
46 will not be expanded by the shell because "local" means "local to the
47 current process."
48
50 See attributes(5) for descriptions of the following attributes:
51
52
53
54
55 ┌─────────────────────────────┬─────────────────────────────┐
56 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
57 ├─────────────────────────────┼─────────────────────────────┤
58 │Availability │SUNWcsu │
59 └─────────────────────────────┴─────────────────────────────┘
60
62 sh(1), attributes(5)
63
64
65
66SunOS 5.11 5 Jul 1990 shell(1F)