Lines Matching full:script
3 * Very simple script interpreter that can evaluate two different commands (one
75 static int interpret_stream(FILE *script, char *const script_name, in interpret_stream() argument
85 * script execution. We must use the script file descriptor instead of in interpret_stream()
86 * the script path name to avoid race conditions. in interpret_stream()
88 err = sys_execveat(fileno(script), "", script_argv, envp, in interpret_stream()
91 perror("ERROR: Script execution check"); in interpret_stream()
95 /* Reads script. */ in interpret_stream()
96 buf_size = fread(buf, 1, buf_size - 1, script); in interpret_stream()
102 fprintf(stderr, "usage: %s <script.inc> | -i | -c <command>\n\n", in print_usage()
105 fprintf(stderr, " ./set-exec -fi -- ./inc -i < script-exec.inc\n"); in print_usage()
162 * as well (e.g. CLI arguments passing script snippets, in main()
163 * environment variables interpreted as script). However, any in main()
164 * way to pass script files should only be restricted according in main()
199 perror("ERROR: Failed to open script"); in main()