LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   shell script is not exiting when ran from some other application (https://www.linuxquestions.org/questions/linux-newbie-8/shell-script-is-not-exiting-when-ran-from-some-other-application-4175431155/)

xombboxer 10-08-2012 11:22 AM

shell script is not exiting when ran from some other application
 
I have bash shell script and I am running it in cygwin on windows.

when I run it manually from the cygwin prompt runs perfectly , but i have to run this script from some other application. when I do so, shell is not exiting. But shell script works fine, I can see the result (generates output file)

Do I need to put exit statements in my shell script (even i tried that too, it did not work)

can any body help me

Habitual 10-08-2012 01:27 PM

Quote:

Originally Posted by xombboxer (Post 4800404)
...
when I run it manually from the cygwin prompt runs perfectly , but i have to run this script from some other application. when I do so, shell is not exiting. ...

Sounds like it may need an "exit 0" somewhere...

Post
1. The script. (sanitize IPs/Passwords/etc if necessary)
2. cygwin command you used to run it 'perfectly'
3. Line from 'other application' that calls The Script.

Thanks.

Edit: Don't forget [code][/code]!!! around "The Script".

xombboxer 10-09-2012 08:44 AM

Code:

cd ti_drivers_vob\build_root_comp;cygwinbuild.bat ./glncov/lncov.sh xpvr TESTCASERUN
this is how i run the shell script passing the shell script to cygwinbuild.bat batch file

cygwinbuild.bat starts the cygwin

i dont think i can post my shell script lncov.sh :(


All times are GMT -5. The time now is 10:56 AM.