Lines Matching defs:command

7 /*	run external command
14 /* spawn_command() runs a command in a child process and returns
15 /* the command exit status.
25 /* Specifies the command to execute as a string. The string is
27 /* or when it appears to be a shell built-in command, otherwise
28 /* the command is executed without invoking a shell.
32 /* The command is specified as an argument vector. This vector is
38 /* command search path is initialized to _PATH_DEFPATH.
46 /* descriptors for the command.
48 /* The user ID to execute the command as. The value -1 is reserved
51 /* The group ID to execute the command as. The value -1 is reserved
54 /* The amount of time in seconds the command is allowed to run before
57 /* The shell to use when executing the command specified with
59 /* command content.
62 /* Panic: interface violations (for example, a missing command).
72 /* exec_command(3) execute command
108 char *command; /* or a plain string */
116 char *shell; /* command shell */
117 int time_limit; /* command time limit */
131 args->command = 0;
148 if (args->command)
157 args->command = va_arg(ap, char *);
194 if (args->command == 0 && args->argv == 0)
196 if (args->command == 0 && args->shell != 0)
201 /* spawn_command - execute command with extreme prejudice */
225 if (args.command == 0)
226 args.command = args.argv[0];
231 * on exec flag). If we cannot run the command now, try again some time
261 * Environment plumbing. Always reset the command search path. XXX
282 argv_add(argv, args.command, (char *) 0);
287 exec_command(args.command);
306 msg_warn("%s: process id %lu: command time limit exceeded",
307 args.command, (unsigned long) pid);