Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how much we can pipe in shell prompt ? Post 302354595 by adc22 on Friday 18th of September 2009 06:06:55 PM
Old 09-18-2009
Data

Quote:
Originally Posted by Corona688
There's no arbitrary limit beyond whatever limit your system has for how many processes one user is allowed to create, how much memory one user is allowed to use, and how many pipes the kernel can keep around at once. You'd probably be allowed a few dozen at minimum before the system started refusing you, depending on what the processes actually are and what limits your sysop has set.

But that doesn't make it a good idea. Joining dozens of processes in a pipe-chain would be very inefficient since each one would need to take turns running and reading and writing. What is the goal here? There's probably a better way to do it.
Today in a interview a senior person asked me this and I was not sure about the answenrs. I should have posted these questions yesterday Smilie
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

No shell prompt?

When I login to a specific machine (running Solaris 2.8; actually serveral machines behave this way), with a known good account, I don't get any shell prompt, and no screen responses to various commands such as ID and PWD. Any ideas on what is causing this, and how to change this behavior? (2 Replies)
Discussion started by: Mufasa
2 Replies

2. UNIX for Dummies Questions & Answers

prompt in sh shell

Hi, I´m using SCO Unix 5.0.5 and I want to configure de variable PS1, so when I type the command: cd /etc/ the prompt shows /etc/_> Is that possible with sh shell? I´ll appreciate your help. Thanks, a Happy New Year! (1 Reply)
Discussion started by: diegoe
1 Replies

3. UNIX for Dummies Questions & Answers

shell specific prompt

currently, I set my prompt in my .cshrc file as: set prompt = "%B%h %m %P %/ \n% " I have to use certain shells for some specific tasks and would like to set different prompts depending on the type of shell that I am using. Any advice? Thanks (3 Replies)
Discussion started by: dranNfly
3 Replies

4. UNIX for Advanced & Expert Users

Weird in Shell Prompt

Hi, I saw something in weird in Shell prompt. I did the following steps 1) Typed ls -l and pressed ESC without entering 2) Typed "v" (please notice that I did not type "i" after "v"), which opened vi editor 3) I see the "ls -l" command that I typed in shell prompt 4) Without modifying... (6 Replies)
Discussion started by: bobbygsk
6 Replies

5. Shell Programming and Scripting

Interactive shell through a pipe

I'm new to working with pipes, so I don't know whether the following is expected behaviour or a bug on the part of an application. Since Version 0.47, Inkscape provides a non-GUI interactive shell mode of operation. I am trying to time the program's performance in converting SVG files to PNG... (1 Reply)
Discussion started by: ccprog
1 Replies

6. Shell Programming and Scripting

Changing the shell prompt

Hi, I want to change the shell prompt, using the cd command. I have a shell prompt like this - p78-mfx(dgaw1078/9781)$ Now i do this - p78-mfx(dgaw1078/9781)$ cd log4j here the shell prompt should change like this - p78-mfx(dgaw1078/9781)log4j$ (6 Replies)
Discussion started by: arunkumarmc
6 Replies

7. AIX

Shell Scripting (prompt off)

Dear all experts, I have a script written to compress a list of files, during compressing, some of the files are having same name. When the compressing started, the same name file will be prompted with message whether to overwrite the old file. I need to enter "y" to continue. Is there any way I... (7 Replies)
Discussion started by: kwliew999
7 Replies

8. Shell Programming and Scripting

RFC - Korn shell prompt

Hi, I am learning shell scripting for the first time. I use AT&T Korn Shell, Version AJM 93u+ 2012-08-01, compiled from source on NetBSD. So far I have managed to set up what I think is a useful and pleasing shell prompt, which can be seen in the image attached to this post. The prompt is... (2 Replies)
Discussion started by: gezley
2 Replies

9. Homework & Coursework Questions

How to create one's own pipe in one's own shell?

Good evening, I'm trying to do my own shell and I encountered some issues while creating it. Indeed when I try such a command I have DAUPHINE> DAUPHINE> ls -l | grep terminal > fichier DAUPHINE> cat fichier My shell is named DAUPHINE Whereas I should have: Code: ... (0 Replies)
Discussion started by: AntoineCompagni
0 Replies
maxuprc(5)							File Formats Manual							maxuprc(5)

NAME
maxuprc - limits the maximum number of concurrent user processes per user VALUES
Failsafe Default Allowed values Recommended value DESCRIPTION
is a dynamic tunable that limits the maximum number of processes per user. Only root can have more than the number of processes limited by Who is Expected to Change This Tunable? System administrators can change the value of depending on the usage of the system. Restrictions on Changing None. This tunable is dynamic. When Should the Value of This Tunable Be Raised? The value of should be changed if users require more processes than what they are currently allowed by If fails with an error value of it could be an indication that was reached by that particular user. However, that is not the only reason that could cause to fail with an errno value of may be returned if system tunable has been reached or memory on the system has been exhausted. What Are the Side Effects of Raising the Value? Raising the value of allows a single user to consume a greater percentage of the system resources. When Should the Value of This Tunable Be Lowered? The value of should be lowered when individual users are monopolizing system resources by running too many concurrent processes. What Are the Side Effects of Lowering the Value? Applications that depend on a large number of processes may behave differently or fail. Existing processes will continue to run but new process creations which would result in the user exceeding will fail. What Other Tunable Values Should Be Changed at the Same Time? When tuning you should keep in mind the value of WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
nproc(5). Tunable Kernel Parameters maxuprc(5)
All times are GMT -4. The time now is 12:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy