08-19-2014
Does the #! line allow space between #! and the interpreter path? I saw that near the end of the above referenced thread.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In a ksh script on an AIX box running a jillion oracle database processes, I'm setting a variable to one of two possible arguments, depending on cmd line arguments.
FINDIT="ps -ef | grep oracle | grep DBexport | grep rshrc"
-or-
FINDIT="ps -ef | grep oracle | grep prod | grep runback"
I... (3 Replies)
Discussion started by: zedmelon
3 Replies
2. Shell Programming and Scripting
Hello All,
I have a whole bunch of shell scripts written in a ksh environment and which successfully execute there. However, I found out that they eventually need to be used in a sh environment. So some commands like some_variable=$(some_command) fail because sh doesn't understand $(.....). I... (11 Replies)
Discussion started by: sherkaner
11 Replies
3. Shell Programming and Scripting
Hi All,
Am using the below command to start my application using the root user
su - bin -c "/home/bin/test/start.sh"
but am getting the error becaue i have set some environment varibales in bin .profile
when i execute the command start.sh by logging directly into bin account it's... (8 Replies)
Discussion started by: ravi.sri24
8 Replies
4. Shell Programming and Scripting
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
4 Replies
5. Shell Programming and Scripting
Im writing a script in the Ksh, as the title suggests.
OK so im sincerely tring to be lazy. Im trying to make a script that will use another file as a sort of variable library
So basically i dont need to include the variables themselves, just want to make a reference to the file, so the... (2 Replies)
Discussion started by: Demon002
2 Replies
6. Shell Programming and Scripting
Hi
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
For example
-------
Script ABC
-------
a.ksh
b.ksh
c.ksh
I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies
7. Shell Programming and Scripting
Hi All,
I am new to this forum. I would really appreciate if some one from you expert team could answer my qns:
1) whats the difference between the below commands. what events occur in the background when I fire each of the three commands.
>./script.ksh
>sh script.ksh
>script.ksh
... (11 Replies)
Discussion started by: agrawal.prachi
11 Replies
8. Shell Programming and Scripting
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies
9. Shell Programming and Scripting
Hi,
How to restrict access to a .ksh script in such the way that the users can only execute the script, neither read nor write.
I tried the below code so that my user alone has the rwx and other users can only execute.
chmod 711 sample.ksh
But when I logged in as a different user... (26 Replies)
Discussion started by: machomaddy
26 Replies
LEARN ABOUT OSX
tcllib_interp
interp(n) Interpreter utilities interp(n)
__________________________________________________________________________________________________________________________________________________
NAME
interp - Interp creation and aliasing
SYNOPSIS
package require Tcl 8.3
package require interp ?0.1.1?
::interp::createEmpty ?path?
::interp::snitLink path methodlist
::interp::snitDictLink path methoddict
_________________________________________________________________
DESCRIPTION
This package provides a number of commands for the convenient creation of Tcl interpreters for highly restricted execution.
API
::interp::createEmpty ?path?
This commands creates an empty Tcl interpreter and returns it name. Empty means that the new interpreter has neither namespaces, nor
any commands. It is useful only for the creation of aliases.
If a path is specified then it is taken as the name of the new interpreter.
::interp::snitLink path methodlist
This command assumes that it was called from within a method of a snit object, and that the command mymethod is available.
It extends the interpreter specified by path with aliases for all methods found in the methodlist, with the alias directing execu-
tion to the same-named method of the snit object invoking this command. Each element of methodlist is actually interpreted as a
command prefix, with the first word of each prefix the name of the method to link to.
The result of the command is the empty string.
::interp::snitDictLink path methoddict
This command behaves like ::interp::snitLink, except that it takes a dictionary mapping from commands to methods as its input, and
not a list of methods. Like for ::interp::snitLink the method references are actually command prefixes. This command allows the
creation of more complex command-method mappings than ::interp::snitLink.
The result of the command is the empty string.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category interp
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
KEYWORDS
alias, empty interpreter, interpreter, method, snit
CATEGORY
Programming tools
COPYRIGHT
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
interp 0.1.1 interp(n)