"Lakshmi B. G." wrote:
> I have created a small file called l.txt which has simple 2 statements
> /bin/sh
> cd /usr/local
> tho' it creates a bash shell it does not go to the specified directory.
> what could be the problem
It could be this?
You are running a shell and call this file.
First instruction from parent shell is to fork another shell.
So long as this child shell is existent, the parent command-2 will not
execute.
So, if you press control-D and exit from child shell, it will cd to that
directory..
Am I right?
Rohit
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/