Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Exiting the Shell
Name: Tom Date: November 17, 2002 at 22:25:35 Pacific OS: UNIX CPU/Ram: 64
Comment:
I'm trying to exit a the shell from a script but cannot get it to work.
I know why it will not exit. The problem being that when you start the script it calls another shell to run the script in. When you get to the exit command it terminates this child process and returns you to your parent process (The $).
One way around this is to execute the script using the dot (.) i.e . [script name].
Summary: Anukta, I will first answer your question about colon dash syntax. I will address the second issue in a separate post. The syntax you ask about is System 5 Bourne shell. The braces around a variable...
Summary: I need scripting help. I have a unix Korns shell running sub-scripts that sometimes return with error. I want to capture the returncodes to a file and exit the parent script with returncode=0. ...
Summary: Hi, I have written a shell script in which I need to connect to sqlplus and execute some query there. In doing so on executing the shell script the query gets executed successfully but is not able to...