View Full Version : K sh - shell scripting issue

April 6th, 2011, 07:19 AM
Hi Gurus,

I am writing a shell script where in if a error occurs i call a function which appends the log file with error info and exits , i face problem while exit , it not only exits the program but the childshell

I switch user to dev environment and run the code
this is what i do
1. login to shiva(this is my unix id)
2. su - dev2(dev environment )
3. when error occurs i use exit to come out the program but i comes out of dev2 back to shiva's home directory

I use solaris version 10

Please help


April 6th, 2011, 08:06 AM
Please reply ... as i am facing the issue and not able to resolve it and its urgent