LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-19-2009, 09:55 AM   #1
ursvmg
LQ Newbie
 
Registered: May 2009
Posts: 1

Rep: Reputation: 0
Problem in executing a shell script


Hi..
I'm new to shell scripting.
I have a shell script which would call few other shell scripts.

Code:
#!/usr/local/bin/tcsh -f
exec build_bb -c
echo 'Hello'
exec build_bb -l
echo 'Hello1'
This piece of code is not working fine.

When i execute this script, it properly executes the first exec (build_bb -c). After then it is not executing the remaining commands. It simply comes out of the script and return to the command prompt.

But when i execute the exec command individually (after commenting the other exec command ) it is working fine.

Could any one please check if there is any issue in my script.
 
Old 05-19-2009, 10:35 AM   #2
nuwen52
Member
 
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
Well, I don't do a lot of scripting in tcsh, mostly in sh. But, do you need the exec's to run an external program?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem executing mv command inside shell script pablogosse Linux - General 7 12-16-2009 01:21 PM
executing konsole from shell script Meriadoc Linux - Newbie 10 07-10-2009 09:08 AM
Executing a shell script command!! vishamr2000 Programming 4 08-15-2005 01:33 AM
executing shell script on apache nooodles Linux - General 1 06-29-2004 02:51 AM
executing a shell script from C llama_meme Programming 2 04-01-2002 10:10 PM


All times are GMT -5. The time now is 08:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration