12-01-2006
Thanks for the info. I still have doubts. If this information is not provided, how the path of the interpreter is assumed?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI,
Nice to meet u... I am a newbie. I have met a problem in the work as following:
SRCLOG="/Share/log/testlog/*"
SRCLOG="/Share/log/systemlog/*"
SRCLOG="/Share/log/log.conf"
SRCLOG="/Share/log/message"
How can I get the file or directory value from each element of... (0 Replies)
Discussion started by: GCTEII
0 Replies
2. Shell Programming and Scripting
Hi,
I have a first shell script (/bin/sh) that receives some paremeters. This is only an example (there are more parameters in fact and this one is among them):
-header "This is a test"
This script calls a secund shell script (/bin/sh) with the same parameters. But, quotes disappear as I would... (0 Replies)
Discussion started by: velo_love
0 Replies
3. Shell Programming and Scripting
Hi there,
Anyone knows what would be the cons and pros of adding a script in ~/bin vs. a function in ~/.bashrc?
I'm not sure how the system keeps tracks of some of the settings loaded in ~/.bashrc (like functions and aliases). Would I be right in thinking that this would all be loaded into... (2 Replies)
Discussion started by: victorbrca
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have a problem I don't understand with fuser.
I launch a simple shell script mysleep.sh:
I launch the command fuser -fu mysleep.sh but fuser doesn't return anything excepted:
mysleep:
Then I modify my script switching from #!/bin/sh to #!/bin/ksh
I launch the command fuser -fu... (4 Replies)
Discussion started by: Peuj
4 Replies
5. Solaris
Hi gentlemen.
For what intended is the directory /usr/local/bin? In this directory are some script.
I don't understand how these scripts being in this directory are started.
Each time after registration of the user occurs start of these scripts. These scripts start applications. (7 Replies)
Discussion started by: wolfgang
7 Replies
6. Shell Programming and Scripting
1. Accept a “userid” as a command line argument
2. Produce the following output:
User userid has a home directory of /path/directory
the default shell for this user is /path/shell
3. At this level, it may be assumed that the “userid” is a unique string in the file that is being searched
4.... (17 Replies)
Discussion started by: grandios
17 Replies
7. OS X (Apple)
Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself.
But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies
8. Shell Programming and Scripting
Hi,
I gave a command echo $SHELL --> To find out the shell I'm using, which gave me the below output
echo $SHELL
/bin/uvalid
what does it mean?
Please use code tags when posting data and code samples, thank you. (1 Reply)
Discussion started by: dnam9917
1 Replies
9. Shell Programming and Scripting
Some question about the usage of shell scripts:
1.) Are the commands of the base shell scripts a subset of bash commands?
2.) Assume I got a long, long script WITHOUT the first line.
How can I find out if the script was originally designed für "sh" or "bash"?
3.) How can I check a given... (3 Replies)
Discussion started by: pstein
3 Replies
LEARN ABOUT OPENDARWIN
error
error(n) Tcl Built-In Commands error(n)
__________________________________________________________________________________________________________________________________________________
NAME
error - Generate an error
SYNOPSIS
error message ?info? ?code?
_________________________________________________________________
DESCRIPTION
Returns a TCL_ERROR code, which causes command interpretation to be unwound. Message is a string that is returned to the application to
indicate what went wrong.
If the info argument is provided and is non-empty, it is used to initialize the global variable errorInfo. errorInfo is used to accumulate
a stack trace of what was in progress when an error occurred; as nested commands unwind, the Tcl interpreter adds information to errorInfo.
If the info argument is present, it is used to initialize errorInfo and the first increment of unwind information will not be added by the
Tcl interpreter. In other words, the command containing the error command will not appear in errorInfo; in its place will be info. This
feature is most useful in conjunction with the catch command: if a caught error cannot be handled successfully, info can be used to return
a stack trace reflecting the original point of occurrence of the error:
catch {...} errMsg
set savedInfo $errorInfo
...
error $errMsg $savedInfo
If the code argument is present, then its value is stored in the errorCode global variable. This variable is intended to hold a machine-
readable description of the error in cases where such information is available; see the tclvars manual page for information on the proper
format for the variable. If the code argument is not present, then errorCode is automatically reset to ``NONE'' by the Tcl interpreter as
part of processing the error generated by the command.
SEE ALSO
catch(n), tclvars(n)
KEYWORDS
error, errorCode, errorInfo
Tcl error(n)