LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2012, 11:22 AM   #1
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Rep: Reputation: 0
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
 
Old 10-08-2012, 01:27 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by xombboxer View Post
...
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".

Last edited by Habitual; 10-09-2012 at 08:41 AM. Reason: I kan haz "cygwin"
 
Old 10-09-2012, 08:44 AM   #3
xombboxer
Member
 
Registered: Apr 2011
Posts: 63

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Script: Getting signal handlers to work when running an application by script pkjss Programming 4 09-14-2011 04:23 AM
Apache ran shell script / no output tnrooster Linux - Software 2 02-03-2011 11:32 AM
start application using shell script Skiltron Linux - Software 2 12-24-2008 12:51 PM
Exiting the Shell script with Error MEssage sumitarun Programming 5 04-14-2005 01:10 AM
shell script q's (io, error exiting ) dave bean Programming 6 02-17-2005 01:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration