Home
last modified time | relevance | path

Searched refs:script (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/illumos-gate/usr/src/test/util-tests/tests/awk/
H A Druntests.sh77 for script in examples/awk/p.*; do
79 printf "$script... "
80 if cmp -s <($AWK -f ${script} data/test.countries 2>&1) ${script/awk/out}; then
90 for script in examples/awk/t.*; do
92 printf "$script... "
93 if diff <($AWK -f ${script} data/test.data 2>&1) ${script/awk/out}; then
122 for script in ./T.*; do
125 printf "$script... "
126 if $script > /dev/null 2>&1; then
158 for script in ./*.sh; do
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/tests/
H A Drestricted.sh63 print 'echo hello' > script
64 chmod +x ./script
65 ! check_restricted script || err_exit 'script without builtins should run in restricted mode'
66 check_restricted ./script || err_exit 'script with / in name should not run in restricted mode'
67 print '/bin/echo hello' > script
68 ! check_restricted script || err_exit 'script with pathnames should run in restricted mode'
69 print 'echo hello> file' > script
70 ! check_restricted script || err_exit 'script with output redirection should run in restricted mod…
71 print 'PATH=/bin' > script
72 ! check_restricted script || err_exit 'script with PATH assignment should run in restricted mode'
[all …]
H A Dbasic.sh118 cat > $tmp/script <<- !
122 chmod 755 $tmp/script
186 cat > $tmp/script <<\!
194 chmod +x $tmp/script
195 case $( (print) | $tmp/script;:) in
200 print 'print $0' > $tmp/script
242 cat > $tmp/script <<- \!
250 cat > $tmp/script <<- \!
255 chmod +x $tmp/script
260 cat > $tmp/script <<- \!
[all …]
H A Dfunctions.sh142 cat > $tmp/script <<-\!
145 chmod +x $tmp/script
148 $tmp/script "$@"
153 cat > $tmp/script <<-\!
161 if ! $tmp/script
164 if ! $SHELL -c $tmp/script
168 if [[ -f $tmp/script ]]
171 cat > $tmp/script <<- \EOF
180 chmod +x $tmp/script
481 cat > $tmp/script << '++EOF'
[all …]
H A Dvariables.sh438 cat > $tmp/script <<-\!
455 chmod +x $tmp/script
456 . $tmp/script 1
457 [[ $file == $tmp/script ]] || err_exit ".sh.file not working for dot scripts"
458 [[ $($SHELL $tmp/script) == $tmp/script ]] || err_exit ".sh.file not working for scripts"
459 [[ $(posixfun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for posix functions"
460 [[ $(fun .sh.file) == $tmp/script ]] || err_exit ".sh.file not working for functions"
496 print 'print ${VAR}' > $tmp/script
498 VAR=new $tmp/script > $tmp/out
504 VAR=new $tmp/script > $tmp/out
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c169 char script[PATH_MAX]; in main() local
930 (void) snprintf(script, sizeof (script), "%s/preremove", pkgbin); in main()
1010 (void) snprintf(script, sizeof (script), "%s/postremove", pkgbin); in main()
1120 char script[PATH_MAX]; in rmclass() local
1137 (void) snprintf(script, sizeof (script), "%s/r.%s", pkgbin, aclass); in rmclass()
1139 (void) snprintf(script, sizeof (script), "%s/r.%s", in rmclass()
1141 if (access(script, F_OK) != 0) in rmclass()
1142 script[0] = '\0'; in rmclass()
1144 if (script[0] != '\0') { in rmclass()
1200 } else if (script[0]) { in rmclass()
[all …]
/illumos-gate/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c286 "group.\n"), script); in get_start_pg()
399 if (stat(script, &st) != 0) { in get_stop_pg()
488 pg = get_stop_pg(script, h, svc, ok); in get_script_pg()
520 svc_name = path_to_svc_name(script); in prepare_contract()
743 svc_name = path_to_svc_name(script); in set_legacy_service()
837 script = argv[optind]; in main()
887 script); in main()
890 if (stat(script, &st) != 0) { in main()
916 arg2 = script; in main()
921 arg3 = script; in main()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dreqexec.c53 static int do_exec(int update, char *script, char *output,
87 dup_chkinstall(char *script) in dup_chkinstall() argument
117 r = copyf(script, dstpath, (time_t)0); in dup_chkinstall()
119 progerr(ERR_CANNOT_COPY, script, dstpath); in dup_chkinstall()
223 reqexec(int update, char *script, int non_abi_scripts, in reqexec() argument
247 if (access(script, F_OK) != 0 || respfile_ro) in reqexec()
278 return (do_exec(update, script, resppath, REQ_STDIN, req_user)); in reqexec()
282 chkexec(int update, char *script) in chkexec() argument
377 tmp_script = strdup(script); in do_exec()
378 } else if ((tmp_script = dup_chkinstall(script)) == NULL) { in do_exec()
[all …]
H A Dmain.c253 char script[PATH_MAX]; in main() local
283 (void) memset(script, '\0', sizeof (script)); in main()
1581 (void) snprintf(script, sizeof (script), "%s/install/checkinstall", in main()
1605 n = chkexec(update, script); in main()
1999 (void) snprintf(script, sizeof (script), "%s/preinstall", pkgbin); in main()
2046 (void) snprintf(script, sizeof (script), in main()
2049 (void) snprintf(script, sizeof (script), in main()
2052 script[0] = '\0'; in main()
2102 script ? script : "", in main()
2103 script ? access(script, F_OK) : -1); in main()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dinterp.c200 struct includeline *script, *se, *sp; in include() local
213 script = se = NULL; in include()
228 while (script != NULL) { in include()
229 se = script; in include()
230 script = script->next; in include()
243 if (script == NULL) { in include()
244 script = sp; in include()
261 for (sp = script; sp != NULL; sp = sp->next) { in include()
277 while(script != NULL) { in include()
278 se = script; in include()
[all …]
/illumos-gate/usr/src/cmd/sed/
H A Dmain.c74 static struct s_compunit *script, **cu_nextp = &script; variable
232 if (script == NULL) { in cu_fgets()
238 switch (script->type) { in cu_fgets()
240 if ((f = fopen(script->s, "r")) == NULL) in cu_fgets()
241 err(1, "%s", script->s); in cu_fgets()
242 fname = script->s; in cu_fgets()
252 s = script->s; in cu_fgets()
269 script = script->next; in cu_fgets()
288 if (s == script->s) { in cu_fgets()
289 script = script->next; in cu_fgets()
[all …]
/illumos-gate/usr/src/cmd/sgs/tools/
H A Dlibconv_mk_report_bufsize.pl31 use vars qw($script $limit $i);
33 $script = "libconv_mk_report_bufsize";
48 die "usage: $script toplimit\n";
51 die "$script: Unable to create report_bufsize.h";
56 * This file was generated by $script,
H A Dreadme_revision57 use vars qw($script $usage $readme $cnt);
62 $script = $_[$#_];
63 $usage = "usage: $script [-d] [readme-file]\n";
98 open(FILE, $readme) || die "$script: Unable to open $readme\n";
/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c273 do_config(char *script, char *basename) in do_config() argument
281 if (script) { in do_config()
283 if (access(script, 0) == 0) { in do_config()
284 if (stat(script, &statbuf) < 0) { in do_config()
286 (void) fprintf(stderr, "Could not stat <%s>\n", script); in do_config()
290 (void) fprintf(stderr, "warning - %s not a regular file - ignored\n", script); in do_config()
296 (void) fprintf(stderr, "Invalid request, %s does not exist\n", script); in do_config()
299 ifp = fopen(script, "r"); in do_config()
301 (void) fprintf(stderr, "Invalid request, can not open %s\n", script); in do_config()
H A Dsacadm.c253 script = optarg; in main()
301 if (!pmtag || type || script) in main()
310 if (!pmtag || type || script) in main()
319 if (!pmtag || type || script) in main()
328 if (!pmtag || type || script) in main()
337 if (!pmtag || type || script) in main()
354 if (type || script) in main()
359 if (script && uid) { in main()
368 if (script && uid) { in main()
447 char *script;
[all …]
H A Dpmadm.c121 char *script = NULL; /* argument to -z */ in main() local
267 script = optarg; in main()
345 if ((pmtag && type) || script) in main()
350 if (script && uid) { in main()
356 doconf(script, pmtag, type, svctag); in main()
416 char *script;
499 if (script) {
501 if (do_config(script, fname)) {
776 doconf(script, tag, type, svctag) in doconf() argument
777 char *script; in doconf()
[all …]
/illumos-gate/usr/src/tools/cscope-fast/
H A Dcommand.c491 FILE *script; /* shell script file */ in changestring() local
498 if ((script = fopen(temp2, "w")) == NULL) { in changestring()
605 (void) fprintf(script, "ed - <<\\!\nH\n"); in changestring()
628 (void) fprintf(script, in changestring()
636 (void) fprintf(script, in changestring()
640 (void) putc('\\', script); in changestring()
642 (void) putc(*s, script); in changestring()
644 (void) putc('/', script); /* to */ in changestring()
647 (void) putc('\\', script); in changestring()
649 (void) putc(*s, script); in changestring()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/mdb/
H A Dtst.dtracedcmd.ksh35 script() function
51 kill $script
61 script &
62 script=$!
/illumos-gate/usr/src/test/zfs-tests/include/
H A Dzpool_script.shlib11 script="$1"
14 wholecmd="$cmd $script $testpool"
27 # Get the new column name that the script created
36 # Count the number of columns for each vdev. Each script should produce
39 # zpool iostat -v output is 7 columns, so if the script ran correctly
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dconf.sh206 script=
215 eval script='$'script_$1
219 "sh{") script="# $name" ;;
220 *) script= ;;
229 script=$script$nl$line
1094 '') case $script in
1130 ${script}
1139 do case $script in
1266 '') case $script in
1277 ${script}
[all …]
/illumos-gate/usr/src/cmd/sgs/tools/common/
H A Dsgsmsg_piglatin_nl.pl62 use vars qw($script $lineno);
64 $script = 'sgsmsg_piglatin_nl';
66 die "usage: $script start_index\n" if ($ARGV[0] eq '');
/illumos-gate/usr/src/test/util-tests/tests/sed/
H A Dsed_addr.ksh22 typeset script="$1"
29 $SED -n "$script" $files > $output
31 echo "[PASS] sed $script $files"
33 echo "[FAIL] sed $script $files"
/illumos-gate/usr/src/cmd/itadm/
H A Ditadm.c386 script = B_TRUE; in main()
898 if (!script && first) { in list_target()
904 if (!script) { in list_target()
943 if (!script) { in list_target()
1461 if (!script && first) { in list_tpg()
1467 if (!script) { in list_tpg()
1483 if (!script) { in list_tpg()
1769 if (!script && first) { in list_initiator()
1775 if (!script) { in list_initiator()
1970 if (!script) { in list_defaults()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/cpc/
H A Dtst.allcpus.ksh45 scriptout=/var/tmp/script.out.$$
54 script() function
89 script
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/
H A Dtst.unpriv_funcs.ksh34 script() function
70 script | /usr/sbin/dtrace -q -s /dev/stdin > $privout
72 script | /usr/sbin/dtrace -q -s /dev/stdin > $unprivout

12345678910>>...12