/illumos-gate/usr/src/test/util-tests/tests/awk/ |
H A D | runtests.sh | 77 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 D | restricted.sh | 63 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 D | basic.sh | 118 cat > $tmp/script <<- ! 122 chmod 755 $tmp/script 123 if [[ $($tmp/script) != "$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 <<- \! 246 if [[ $($SHELL $tmp/script <&-) != done ]] 250 cat > $tmp/script <<- \! [all …]
|
H A D | functions.sh | 142 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 181 if [[ $( $SHELL $tmp/script arg1 arg2) != arg2 ]] [all …]
|
H A D | variables.sh | 438 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 D | main.c | 169 char script[PATH_MAX]; in main() local 930 (void) snprintf(script, sizeof (script), "%s/preremove", pkgbin); in main() 931 if (access(script, F_OK) != 0) { in main() 937 echoDebug(DBG_PKGREMOVE_POC_NODEL, pkginst, script, in main() 941 echoDebug(DBG_PKGREMOVE_POC_DBUPD, pkginst, script, in main() 948 echoDebug(DBG_PKGREMOVE_EXEPOC_GZ, pkginst, script); in main() 951 echoDebug(DBG_PKGREMOVE_EXEPOC_LZ, pkginst, script, in main() 958 script, NULL), ERR_PREREMOVE); in main() 961 PROC_USER, PROC_GRP, SHELL, script, in main() 1010 (void) snprintf(script, sizeof (script), "%s/postremove", pkgbin); in main() [all …]
|
/illumos-gate/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 194 get_start_pg(const char *script, scf_handle_t *h, scf_service_t *svc, in get_start_pg() argument 201 if ((pg_name = start_pg_name(script)) == NULL) in get_start_pg() 229 "not launching \"%s\".\n"), script); in get_start_pg() 277 "seems to be running.\n"), script); in get_start_pg() 286 "group.\n"), script); in get_start_pg() 392 get_stop_pg(const char *script, scf_handle_t *h, scf_service_t *svc, in get_stop_pg() argument 399 if (stat(script, &st) != 0) { in get_stop_pg() 400 uu_warn(gettext("Couldn't stat %s (%s).\n"), script, in get_stop_pg() 405 if ((suffix = script_suffix(script)) == NULL) { in get_stop_pg() 420 "doesn't seem to be running.\n"), script); in get_stop_pg() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | reqexec.c | 53 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 318 return (do_exec(update, script, resppath, CHK_STDIN, CHK_USER_ALT)); in chkexec() 322 do_exec(int update, char *script, char *output, char *inport, char *alt_user) in do_exec() argument [all …]
|
H A D | main.c | 253 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() 1583 if (access(script, F_OK) != 0) { in main() 1585 echoDebug(DBG_PKGINSTALL_COC_NONE, pkginst, script, in main() 1589 echoDebug(DBG_PKGINSTALL_COC_DBUPD, pkginst, script, in main() 1593 echoDebug(DBG_PKGINSTALL_COC_NODEL, pkginst, script, in main() 1599 echoDebug(DBG_PKGINSTALL_EXECOC_GZ, pkginst, script); in main() 1602 echoDebug(DBG_PKGINSTALL_EXECOC_LZ, pkginst, script, in main() 1605 n = chkexec(update, script); in main() [all …]
|
/illumos-gate/usr/src/boot/common/ |
H A D | interp.c | 200 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 D | main.c | 74 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() 247 sizeof (string_ident), "\"%s\"", script->s)) >= in cu_fgets() 252 s = script->s; in cu_fgets() 256 errx(1, "BUG: Unknown script type: %d\n", script->type); in cu_fgets() 269 script = script->next; in cu_fgets() [all …]
|
/illumos-gate/usr/src/cmd/sgs/tools/ |
H A D | libconv_mk_report_bufsize.pl | 31 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 D | readme_revision | 57 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 D | admutil.c | 273 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 D | sacadm.c | 114 char *script = NULL; /* argument to -z */ in main() local 253 script = optarg; in main() 294 add_pm(pmtag, type, command, version, flags, count, script, comment); 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() 345 if ((pmtag && type) || script) in main() 354 if (type || script) in main() [all …]
|
H A D | pmadm.c | 121 char *script = NULL; /* argument to -z */ in main() local 267 script = optarg; in main() 312 add_svc(pmtag, type, svctag, id, pmspec, flags, version, comment, script); in main() 319 if (!pmtag || !svctag || type || script) in main() 328 if (!pmtag || !svctag || type || script) in main() 337 if (!pmtag || !svctag || type || script) in main() 345 if ((pmtag && type) || script) in main() 350 if (script && uid) { in main() 354 if ((pmtag && type) || (!pmtag && !type) || !svctag || (type && !script)) in main() 356 doconf(script, pmtag, type, svctag); in main() [all …]
|
/illumos-gate/usr/src/tools/cscope-fast/ |
H A D | command.c | 491 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() 633 (void) fprintf(script, "e %s\n", oldfile); 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() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/mdb/ |
H A D | tst.dtracedcmd.ksh | 35 script() function 51 kill $script 61 script & 62 script=$!
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | conf.sh | 206 script= 215 eval script='$'script_$1 219 "sh{") script="# $name" ;; 220 *) script= ;; 229 script=$script$nl$line 294 eval CONF_script_${key}='$'script 316 …n" "$flags" "$define${values:+$sp=$values}${headers:+$sp$headers$nl}${script:+$sp$ob$script$nl$cb}" 650 …n" "$flags" "$define${values:+$sp=$values}${headers:+$sp$headers$nl}${script:+$sp$ob$script$nl$cb}" 1094 '') case $script in 1095 '#'*) echo "$script" > $tmp.sh [all …]
|
/illumos-gate/usr/src/test/zfs-tests/include/ |
H A D | zpool_script.shlib | 11 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/cmd/sgs/tools/common/ |
H A D | sgsmsg_piglatin_nl.pl | 62 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 D | sed_addr.ksh | 22 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 D | itadm.c | 210 list_target(char *tgt, boolean_t verbose, boolean_t script); 216 list_tpg(char *tpg, boolean_t verbose, boolean_t script); 225 list_initiator(char *ini, boolean_t verbose, boolean_t script); 234 list_defaults(boolean_t script); 257 boolean_t script = B_FALSE; in main() local 386 script = B_TRUE; in main() 580 ret = list_target(objp, verbose, script); in main() 589 ret = list_tpg(objp, verbose, script); in main() 598 ret = list_initiator(objp, verbose, script); in main() 607 ret = list_defaults(script); in main() [all …]
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/cpc/ |
H A D | tst.allcpus.ksh | 45 scriptout=/var/tmp/script.out.$$ 54 script() function 89 script
|
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/privs/ |
H A D | tst.unpriv_funcs.ksh | 34 script() function 70 script | /usr/sbin/dtrace -q -s /dev/stdin > $privout 72 script | /usr/sbin/dtrace -q -s /dev/stdin > $unprivout
|