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.

Try:

#/bin/sh
script -c "./execute_some_script.sh" filename.txt
exit

Jean-Pierre.

Sorry I forget to mention that i want to run this thing on solaris machine
and there is no -c option in script. The script has only -a option