Home
last modified time | relevance | path

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

1234567891011

/titanic_41/usr/src/lib/libshell/common/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
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
240 cat > $tmp/script <<- \!
244 if [[ $($SHELL $tmp/script <&-) != done ]]
248 cat > $tmp/script <<- \!
[all …]
H A Dfunctions.sh139 cat > $tmp/script <<-\!
142 chmod +x $tmp/script
145 $tmp/script "$@"
150 cat > $tmp/script <<-\!
158 if ! $tmp/script
161 if ! $SHELL -c $tmp/script
165 if [[ -f $tmp/script ]]
168 cat > $tmp/script <<- \EOF
177 chmod +x $tmp/script
178 if [[ $( $SHELL $tmp/script arg1 arg2) != arg2 ]]
[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"
487 print 'print ${VAR}' > $tmp/script
489 VAR=new $tmp/script > $tmp/out
495 VAR=new $tmp/script > $tmp/out
[all …]
H A Dattributes.sh124 print 'typeset -i m=48/4+1;print -- $m' > $tmp/script
125 chmod +x $tmp/script
127 if [[ $($tmp/script) != 13 ]]
130 print 'print VAR=$VAR' > $tmp/script
132 $tmp/script > $tmp/script.1
133 [[ $(< $tmp/script.1) == VAR= ]] || err_exit 'typeset -L should not be inherited'
/titanic_41/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c166 char script[PATH_MAX]; in main() local
927 (void) snprintf(script, sizeof (script), "%s/preremove", pkgbin); in main()
928 if (access(script, F_OK) != 0) { in main()
934 echoDebug(DBG_PKGREMOVE_POC_NODEL, pkginst, script, in main()
938 echoDebug(DBG_PKGREMOVE_POC_DBUPD, pkginst, script, in main()
945 echoDebug(DBG_PKGREMOVE_EXEPOC_GZ, pkginst, script); in main()
948 echoDebug(DBG_PKGREMOVE_EXEPOC_LZ, pkginst, script, in main()
955 script, NULL), ERR_PREREMOVE); in main()
958 PROC_USER, PROC_GRP, SHELL, script, in main()
1015 (void) snprintf(script, sizeof (script), "%s/postremove", pkgbin); in main()
[all …]
/titanic_41/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
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 Dmain.c249 char script[PATH_MAX]; in main() local
279 (void) memset(script, '\0', sizeof (script)); in main()
1577 (void) snprintf(script, sizeof (script), "%s/install/checkinstall", in main()
1579 if (access(script, F_OK) != 0) { in main()
1581 echoDebug(DBG_PKGINSTALL_COC_NONE, pkginst, script, in main()
1585 echoDebug(DBG_PKGINSTALL_COC_DBUPD, pkginst, script, in main()
1589 echoDebug(DBG_PKGINSTALL_COC_NODEL, pkginst, script, in main()
1595 echoDebug(DBG_PKGINSTALL_EXECOC_GZ, pkginst, script); in main()
1598 echoDebug(DBG_PKGINSTALL_EXECOC_LZ, pkginst, script, in main()
1601 n = chkexec(update, script); in main()
[all …]
/titanic_41/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c194 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 …]
/titanic_41/usr/src/cmd/sed/
H A Dmain.c73 static struct s_compunit *script, **cu_nextp = &script; variable
231 if (script == NULL) { in cu_fgets()
237 switch (script->type) { in cu_fgets()
239 if ((f = fopen(script->s, "r")) == NULL) in cu_fgets()
240 err(1, "%s", script->s); in cu_fgets()
241 fname = script->s; in cu_fgets()
246 sizeof (string_ident), "\"%s\"", script->s)) >= in cu_fgets()
251 s = script->s; in cu_fgets()
266 script = script->next; in cu_fgets()
285 if (s == script->s) { in cu_fgets()
[all …]
/titanic_41/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 Dlint_hdr.pl62 use vars qw($script $usage $dir $argc $target $elfclass);
65 $script = 'lint_hdr';
66 $usage = "usage: $script target [elfclass]\n";
/titanic_41/usr/src/cmd/saf/
H A Dadmutil.c276 do_config(char *script, char *basename) in do_config() argument
284 if (script) { in do_config()
286 if (access(script, 0) == 0) { in do_config()
287 if (stat(script, &statbuf) < 0) { in do_config()
289 (void) fprintf(stderr, "Could not stat <%s>\n", script); in do_config()
293 (void) fprintf(stderr, "warning - %s not a regular file - ignored\n", script); in do_config()
299 (void) fprintf(stderr, "Invalid request, %s does not exist\n", script); in do_config()
302 ifp = fopen(script, "r"); in do_config()
304 (void) fprintf(stderr, "Invalid request, can not open %s\n", script); in do_config()
H A Dsacadm.c117 char *script = NULL; /* argument to -z */ in main() local
256 script = optarg; in main()
297 add_pm(pmtag, type, command, version, flags, count, script, comment); in main()
304 if (!pmtag || type || script) in main()
313 if (!pmtag || type || script) in main()
322 if (!pmtag || type || script) in main()
331 if (!pmtag || type || script) in main()
340 if (!pmtag || type || script) in main()
348 if ((pmtag && type) || script) in main()
357 if (type || script) in main()
[all …]
H A Dpmadm.c123 char *script = NULL; /* argument to -z */ in main() local
269 script = optarg; in main()
314 add_svc(pmtag, type, svctag, id, pmspec, flags, version, comment, script); in main()
321 if (!pmtag || !svctag || type || script) in main()
330 if (!pmtag || !svctag || type || script) in main()
339 if (!pmtag || !svctag || type || script) in main()
347 if ((pmtag && type) || script) in main()
352 if (script && uid) { in main()
356 if ((pmtag && type) || (!pmtag && !type) || !svctag || (type && !script)) in main()
358 doconf(script, pmtag, type, svctag); in main()
[all …]
/titanic_41/usr/src/cmd/dtrace/test/tst/common/mdb/
H A Dtst.dtracedcmd.ksh35 script() function
51 kill $script
61 script &
62 script=$!
/titanic_41/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()
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 …]
/titanic_41/usr/src/cmd/sgs/packages/common/
H A Dreadme_revision60 use vars qw($script $usage $readme $cnt);
65 $script = $_[$#_];
66 $usage = "usage: $script [-d] [readme-file]\n";
101 open(FILE, $readme) || die "$script: Unable to open $readme\n";
/titanic_41/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 '');
/titanic_41/usr/src/lib/libast/common/comp/
H A Dconf.sh190 script=
199 eval script='$'script_$1
203 "sh{") script="# $name" ;;
204 *) script= ;;
213 script=$script$nl$line
278 eval CONF_script_${key}='$'script
300 …n" "$flags" "$define${values:+$sp=$values}${headers:+$sp$headers$nl}${script:+$sp$ob$script$nl$cb}"
634 …n" "$flags" "$define${values:+$sp=$values}${headers:+$sp$headers$nl}${script:+$sp$ob$script$nl$cb}"
1077 '') case $script in
1078 '#'*) echo "$script" > $tmp.sh
[all …]
/titanic_41/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
/titanic_41/usr/src/cmd/dtrace/test/tst/common/cpc/
H A Dtst.allcpus.ksh45 scriptout=/var/tmp/script.out.$$
54 script() function
89 script
/titanic_41/usr/src/cmd/itadm/
H A Ditadm.c210 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 …]
/titanic_41/usr/src/cmd/svr4pkg/installf/
H A Dmain.c116 char *script; variable
181 script = getenv("PKG_PROC_SCRIPT"); in main()
183 if (ulim && script) { in main()
483 if (ulim && script) { in quit()
485 set_ulimit(script, gettext(ERR_R_FAIL)); in quit()
487 set_ulimit(script, gettext(ERR_I_FAIL)); in quit()
/titanic_41/usr/src/cmd/svr4pkg/libinst/
H A Ddoulimit.c60 int set_ulimit(char *script, char *err_msg);
95 set_ulimit(char *script, char *err_msg) in set_ulimit() argument
103 script_name = strdup(script); in set_ulimit()

1234567891011