Sponsored Content
Top Forums UNIX for Dummies Questions & Answers What is meant by subprocesses? Post 302406224 by Straitsfan on Monday 22nd of March 2010 10:21:40 AM
Old 03-22-2010
My apologies -- but your explanation is fine. So I'm guessing that a subprocess consists of other executions required to carry out the primary executions of said instructions?

so when something is 'known' to a subprocess, it means what?

Here are the paragraphs that confused me:

"Some of the variables discussed above are used by commands you may run -- as opposed to the shell itself -- so that they can determine certain aspects of your envrionment. The majority, however, are not even known outside the shell.

This dichotomy begs an important question: which shell "Things" are known outside the shell, and which are only internal? This question is at the heart of many misunderstandings about the shell and shell programming. Before we answer, we'll as it again in a more precise way: which shell "things?" are known to subprocesses? Remember that wenever you enter a command, you are telling the shell to run that commmand in a subprocess; furthermore, some complex programsmay start their own subprocesses. Now for the answer, which (like many UNXI concepts) is unfortunately not as simple as you might like. "A few things are known to subprocesses, but the reverse is not true: subprocesses can never make these things known to the processes that created them.

Which things are know depends on whether the subprocess in question is a bash program or an interactive shell. If the subprocess is a bash program, then it's possible to propagate nearly every type of thing we've seen in this chapter -- options and variables -- plus a few we'll see later."

To which I respond: Huh? Smilie

I ask because the following section i the book concerns what are called environment variables, and if I know what a subprocess is, then I can make sense of the section better.

Maybe I should have just quoted this at the beginning, come to think of it. Apologies again.

Last edited by Straitsfan; 03-22-2010 at 11:33 AM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Please help me with this script meant for checking /etc/passwd if a name exists

I'm trying to create a program that includes variety of duties. One of the duties includes deleting a user if the user name exist in the /etc/passwd file. how do i make that happen. those of you that know about this shell programming, please tell me what i should do after the shell reads... (4 Replies)
Discussion started by: TRUEST
4 Replies

2. UNIX for Advanced & Expert Users

possibility to call subprocesses from ksh ??

Hi!! Is there a possibility to call/start a subproces using ksh ?? Hope that there is somebody to help me. thanks in advance. Corine (3 Replies)
Discussion started by: TheBlueLady
3 Replies

3. UNIX for Dummies Questions & Answers

What is meant by Kernel Parameter "dflssiz" in Digital Unix (OSF)

Hi, We have a Digital Unix Server with OSF. There's a Kernel Parameter "dflssiz" on this server. I just want to know, what it means. Thanks (2 Replies)
Discussion started by: sameerdes
2 Replies

4. UNIX for Dummies Questions & Answers

What is meant by <<! ... ! ??

I tried typing it into google but no results. I don't know what it's called or what it does and when it is used so I must ask: What does it mean if you have something like... cmd <!! cm2 cm3 ! What do those <!! and ! symbols do? When/why do you use them? I found it inside a bourne... (2 Replies)
Discussion started by: yongho
2 Replies

5. Post Here to Contact Site Administrators and Moderators

What is meant by the words under usernames?

Under all users, there are some keynames. Some are obvious, like Moderator and Registered User. I have seen others too. What do they mean or signify?;) (2 Replies)
Discussion started by: joeyg
2 Replies

6. UNIX for Dummies Questions & Answers

What is meant by "exit $?"

What is meant by "exit $?" (4 Replies)
Discussion started by: santosh149
4 Replies

7. UNIX for Dummies Questions & Answers

What is meant by "LDAP Instances"?

What is meant by "LDAP Instances"?any clarification or examples? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

8. UNIX for Dummies Questions & Answers

How to kill a script and all its subprocesses?

I'd like to terminate scripts. These scripts are not by me, but other persons. These contain other programs such as ping, nmap, arp, etc. If such a script is running, how can I terminate this script AND all processes called by this script? These scripts are big so terminating all programs... (4 Replies)
Discussion started by: lordofazeroth
4 Replies

9. Shell Programming and Scripting

Shells, forks, subprocesses... oh my

all, i've been reading to try and get an abstract idea of the process effeciency of commands , sed, bash, perl, awk, find, grep, etc which processes will spawn?, fork?, launch subshell?, etc and under what conditions? how do you know which commands have the faster and better stdio... (2 Replies)
Discussion started by: f77hack
2 Replies
PUBINDEX(1)						      General Commands Manual						       PUBINDEX(1)

NAME
pubindex - make inverted bibliographic index SYNOPSIS
pubindex [ file ] ... DESCRIPTION
Pubindex makes a hashed inverted index to the named files for use by refer(1). The files contain bibliographic references separated by blank lines. A bibliographic reference is a set of lines that contain bibliographic information fields. Each field starts on a line beginning with a `%', followed by a key-letter, followed by a blank, and followed by the contents of the field, which continues until the next line starting with `%'. The most common key-letters and the corresponding fields are: A Author name B Title of book containing article referenced C City D Date d Alternate date E Editor of book containing article referenced G Government (CFSTI) order number I Issuer (publisher) J Journal K Other keywords to use in locating reference M Technical memorandum number N Issue number within volume O Other commentary to be printed at end of reference P Page numbers R Report number r Alternate report number T Title of article, book, etc. V Volume number X Commentary unused by pubindex Except for `A', each field should only be given once. Only relevant fields should be supplied. An example is: %T 5-by-5 Palindromic Word Squares %A M. D. McIlroy %J Word Ways %V 9 %P 199-202 %D 1976 FILES
x.ia, x.ib, x.ic where x is the first argument. SEE ALSO
refer(1) local PUBINDEX(1)
All times are GMT -4. The time now is 06:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy