what is parent shell, child shell and subshell, ?

what is parent shell, child shell and subshell, ?

Post by Thai Si » Wed, 25 Oct 2000 04:00:00



what are these shell parent shell, chile shell, and a subshell.
I am a beginner in Unix. I just started the class for like two weeks and I
am having problem understanding.
Can someone help pleaaaasssse.

Thanks ahead

 
 
 

what is parent shell, child shell and subshell, ?

Post by mcuni » Thu, 26 Oct 2000 16:21:26


A typical command from the shell prompt will spawn a subshell( another copy
of the shell) that executes the command and returns control to the parent.
I use the korn shell a lot at work and will very often run a command that I
know will need a long time. So I use the syntax <command>&. The ampersand
tells the shell the create the subshell for the command and immediately to
the parent(while the subshell still executes in the background). Just read
the man pages for the shell that you are using and it will soon be clear.
Man pages rock, don't wast too much money on books.


Quote:> what are these shell parent shell, chile shell, and a subshell.
> I am a beginner in Unix. I just started the class for like two weeks and I
> am having problem understanding.
> Can someone help pleaaaasssse.

> Thanks ahead


 
 
 

1. How the subshell communicate with parent shell?

In the korn shell, one can "export" some enviroment variable to let its
subshell inherited. But how can subshell
communicate with its parent shell? In another word, how can subshell let
its parent know the value of variable
which defined inside this subshell?

Thanks,

--
Sharon Xiaoyun Kong
------------------------------------

Tel: 914-892-4489
IBM internal number: 532-4489

2. Slooooooooooooooooooow motion app init

3. unblocking a parent shell after it launches a subshell

4. Lexmark on Mandrake

5. Terminating Parent/Child User Written Korn Shell Functions???

6. Extract paragraph from large file

7. Child shell affecting parent question?

8. **** News problems ****

9. Trick to pipe/redirect value from child shell to parent?

10. Passing parameters from child to Parent shell

11. switch bet parent & child shell

12. How to have a shell script terminate the login shell (parent)?

13. $0 format depends on parent shell not the interpreting shell ???