Home
last modified time | relevance | path

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

12345678910>>...13

/titanic_51/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 …]
/titanic_51/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
[all...]
H A Dbasic.sh118 cat > $tmp/script <<- !
122 chmod 755 $tmp/script
123 if [[ $($tmp/script) != "$tmp/script" ]]
124 then err_exit '$0 not correct for #! script'
165 then err_exit "script not working"
168 then err_exit "script | cat not working"
186 cat > $tmp/script <<\!
194 chmod +x $tmp/script
195 case $( (print) | $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
167 $SHELL -c "trap 'rm $tmp/script' EXIT"
168 if [[ -f $tmp/script ]]
171 cat > $tmp/script <<- \EOF
180 chmod +x $tmp/script
[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 >
[all...]
/titanic_51/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c111 * is connected during execution of a procedure script. /dev/null is
166 char script[PATH_MAX]; in main() local
317 * --> Do not perform any script locking in main()
918 * Run a preremove script if one is provided by the package. in main()
919 * Don't execute preremove script if only updating the DB. in main()
920 * Don't execute preremove script if files are not being deleted. in main()
923 /* update the lock - at the preremove script */ in main()
926 /* execute preremove script if one is provided */ in main()
927 (void) snprintf(script, sizeof (script), " in main()
1125 char script[PATH_MAX]; rmclass() local
[all...]
/titanic_51/usr/src/cmd/svr4pkg/pkginstall/
H A Dreqexec.c53 static int do_exec(int update, char *script, char *output,
78 * This function creates a working copy of the checkinstall script.
83 * script or NULL
87 dup_chkinstall(char *script) in dup_chkinstall() argument
94 /* determine length for destination script path */ in dup_chkinstall()
98 /* allocate storage to hold destination script path */ in dup_chkinstall()
105 /* create destination script path */ in dup_chkinstall()
115 /* make copy of script */ in dup_chkinstall()
117 r = copyf(script, dstpath, (time_t)0); in dup_chkinstall()
119 progerr(ERR_CANNOT_COPY, script, dstpat in dup_chkinstall()
223 reqexec(int update,char * script,int non_abi_scripts,boolean_t enable_root_user) reqexec() argument
282 chkexec(int update,char * script) chkexec() argument
322 do_exec(int update,char * script,char * output,char * inport,char * alt_user) do_exec() argument
[all...]
H A Dmain.c114 * is connected during execution of a procedure script. PROC_STDIN is
249 char script[PATH_MAX]; in main() local
279 (void) memset(script, '\0', sizeof (script)); in main()
466 * Do not perform any script locking. in main()
549 * --> Do not perform any script locking in main()
1204 * If this script was invoked by 'pkgask', just in main()
1205 * execute request script and quit (do_pkgask()). in main()
1374 * value of UPDATE in their postinstall script. After a pkg in main()
1418 * Be sure request script ha in main()
[all...]
/titanic_51/usr/src/cmd/svc/lsvcrun/
H A Dlsvcrun.c26 * lsvcrun - run an rc?.d script, modifying appropriate data in the
33 * Each group has the following properties: name, the script name
35 * inode, the inode of the script; and suffix, the suffix of the
36 * script name, e.g. 'foo'.
39 * collect inode before running the script.
41 * When we run a K script, we try to identify and remove the
42 * property group by means of examining the inode and script
43 * suffix. The inode check means more than one script with the
52 * make sure to execute the script anyway in an attempt to keep
53 * things working as they used to. If we can't execute the script,
194 get_start_pg(const char * script,scf_handle_t * h,scf_service_t * svc,boolean_t * ok) get_start_pg() argument
392 get_stop_pg(const char * script,scf_handle_t * h,scf_service_t * svc,boolean_t * ok) get_stop_pg() argument
432 get_script_pg(const char * script,boolean_t start_flag,boolean_t * ok) get_script_pg() argument
497 prepare_contract(const char * script,const char * action) prepare_contract() argument
703 set_legacy_service(scf_propertygroup_t * pg,const char * script,ino_t inode) set_legacy_service() argument
801 const char *restarter, *script, *action; main() local
[all...]
/titanic_51/usr/src/boot/sys/boot/common/
H A Dinterp.c139 * that the script won't stop if they fail).
188 struct includeline *script, *se, *sp; in include() local
199 * Read the script into memory. in include()
201 script = se = NULL; in include()
207 /* Allocate script line structure and copy line, flags */ in include()
216 while (script != NULL) { in include()
217 se = script; in include()
218 script = script->next; in include()
231 if (script in include()
[all...]
/titanic_51/usr/src/cmd/sed/
H A Dmain.c73 static struct s_compunit *script, **cu_nextp = &script; variable
184 /* First usage case; script is the first arg */ in main()
208 (void) fputs(_("usage: sed script [-Ealn] [-i[extension]] [file...]\n" in usage()
209 " sed [-Ealn] [-i[extension]] [-e script]... " in usage()
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 in cu_fgets()
[all...]
/titanic_51/usr/src/cmd/sgs/tools/
H A Dlibconv_mk_report_bufsize.pl31 use vars qw($script $limit $i);
33 $script = "libconv_mk_report_bufsize";
36 # This perl script is used by the sgs/libconv makefile to generate an
43 # which is found further down in this script.
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_51/usr/src/cmd/saf/
H A Dadmutil.c264 * do_config - take a config script and put it where it belongs or
270 * args: script - name of file containing script (if NULL, means output
272 * basename - name of script (relative to HOME (from misc.h))
276 do_config(char *script, char *basename) in do_config() argument
284 if (script) { in do_config()
285 /* we're installing a new configuration 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()
[all...]
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()
443 add_pm(tag,type,command,version,flags,count,script,comment) add_pm() argument
[all...]
/titanic_51/usr/src/cmd/dtrace/test/tst/common/mdb/
H A Dtst.dtracedcmd.ksh29 # This script primarily tests that the ::dtrace dcmd is not dumping
35 script() function
51 kill $script
61 script &
62 script=$!
66 # Sleep while the above script fires into life. To guard against dtrace dying
/titanic_51/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); /* t in changestring()
[all...]
/titanic_51/usr/src/cmd/sgs/packages/common/
H A Dreadme_revision41 # In order to remove the hard wired dependence on sccs, this script generates
60 use vars qw($script $usage $readme $cnt);
63 # Use the basename of the name we're invoked under as the script name
65 $script = $_[$#_];
66 $usage = "usage: $script [-d] [readme-file]\n";
101 open(FILE, $readme) || die "$script: Unable to open $readme\n";
103 # At the date this script was put into service, the SCCS revision
110 # with this script.
/titanic_51/usr/src/cmd/sgs/tools/common/
H A Dsgsmsg_piglatin_nl.pl55 # the elfedit module help strings. This perl script emulates nl
62 use vars qw($script $lineno);
64 $script = 'sgsmsg_piglatin_nl';
66 die "usage: $script start_index\n" if ($ARGV[0] eq '');
/titanic_51/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_51/usr/src/contrib/ast/src/lib/libast/comp/
H A Dconf.sh26 # this script generates these files from the table file in the first arg
206 script=
215 eval script='$'script_$1
219 "sh{") script="# $name" ;;
220 *) script= ;;
229 script=$script$nl$line
294 eval CONF_script_${key}='$'script
313 eval script=\"'$'CONF_script_$key\"
316 printf "%29s %35s %8s %2s %1d %5s %s$nl" "$name" "$key" "$standard" "$call" "$section" "$flags" "$define${values:+$sp=$values}${headers:+$sp$headers$nl}${script
[all...]
/titanic_51/usr/src/cmd/dtrace/test/tst/common/cpc/
H A Dtst.allcpus.ksh29 # This script verifies that we can fire a probe on each CPU that is in
32 # The script will fail if:
45 scriptout=/var/tmp/script.out.$$
54 script() function
89 script

12345678910>>...13