Rohit wrote:
> 
> "Lakshmi B. G." wrote:
> > I have created a small file called l.txt which has simple 2 statements
> > /bin/sh
> > cd /usr/local
> 
> 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..
> 

i would differ.
what is the purpose of Lakshmi creating a child shell by giving /bin/sh
and coming out without doing anything there?

i guess that he wants to "cd /usr/local" in the new child shell.

how to do THAT?

-vulcan



-----------------------------------------------------------------------
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/

Reply via email to