Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
with communication between to different parties their has to a common language established between the two in order for the two to be able to communicate properly and understandably with each other.
the 'shell' as you put it is arbitrary because Unix/ especially Linux has many different shells, bash, sh, dash, KornShell, Z shell, tcsh, to name a few. then you add in two arbitrary programs that you want to communicate between the two using a arbitrary shell. these two arbitrary program have to be set up to use a means to talk to each other via an arbitrary shell.
in other words more precise information is needed in order to even try to attempt to give you a more forward answer.
Assume that you want two C# or C++ programs to share some data. You can write the first program so that it writes it's output to a file, and then write the second program so that it reads the data from this file. However this process can be difficult and time consuming, especially if you don't know how to program in C# or C++. What feature of the UNIX/Linux shell can you use to simplify the process of sharing data between programs?
it is a program by program basis. awk can pipe to grep, or grep can pipe to awk, cat can pipe to grep then pipe to awk then pipe to sed.
writing a program to do this as apposed to using one that can do this. what are you wanting these two programs to do, what type and format of information output to know how to pipe in into the appropriate program to process it.
Given the OP's other thread, I can almost guarantee that this is a homework exercise (the opening post was the last sentence in that question, the whole question being posed in the OP's subsequent post). The OP is trying to be hand-fed the answer without really understanding it.
"Gentle student, what do you think the answer is ... and why?"
When instructors, like me ...(well, in the evenings anyway) pose these questions to you, we are asking you "to think ... for yourself."
So ... "without simply asking someone else for "the right answer," take up the challenge for yourself.
After all – "one day you will find yourself in deep water." (And, by the way, paid to be there.) At that time, all those swimming-books and swimming-tests won't matter at all."
First question: "Do you, in fact, even want to be there?" The choice is entirely yours, and I won't presume to make it for you. But, if so: "prepare yourself."
Last edited by sundialsvcs; 03-19-2018 at 09:02 PM.
Please stop posting your test and homework assignment questions, showing no effort. LQ is a friendly site, however not about doing work for you.
All members are volunteers and are willing to help, including with homework assignments. A stated guideline in the LQ Rules is that you do not post homework or test questions verbatim, with one reason being that your instructor may be a LQ member.
The other guidelines are that you need to show some effort with your assignments.
If you wish to solely ask for answers and receive them, then the LQ site is not for you.
And the elementary/simple things are the very ones he needs to be able to look up for himself.
These lessons are not just for programming, they also apply to life in general.
I would never answer my own children's questions directly; I would always tell them where to find the answer. Now they are grown up and thinking of having children of their own, they tell me that they are going to do the same. (but they do get more direct answers now they have learned the lesson).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.