The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-29-2008
sushantnirwan sushantnirwan is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 8
Run a command on new created shell

Hi
I am using a command "script" to capture the output of a command
my script is

#/bin/sh
script filename.txt
./execute_some_script.sh
exit
exit

Now my problem is that when my script run "script filename.txt" its fork a new shell and after the no other command execute
The remaining command executes after I type exit on the terminal

So help me , so that this script execute the "./execute_some_script.sh" after run script "filename.txt" and exit also.