OMG Sorry, must have been selective (more ignoring) perception or something
Fixed the other post.
I LOVE YOU, that's how happy I'm right now! :steamhappy:
I need to get my head around (EDIT: 'find inner acceptance') the 3 lines for pipes, though... but.. it's working
WEEEEE !
Positivly /solved now!
Thanks alot Made In Germany
i made a lot of processes. here is the code:
main()
{
printf("\nEnter K="); scanf("%d",&k);
printf("Enter L="); scanf("%d",&l);
printf("\nFather id=%d\n",getpid());
x=0;
makechild();
sleep(2);
return 1;
}
int makechild()
{
for(q=1;q<=k;q++)
{
if(f=fork())
{
... (5 Replies)
Hi,
I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ).
Eg:
0000001
0000220
0001235
0000022
0000023
...........
.........
........
Like this i am having around 1500000 records. After adding... (23 Replies)
Hi I have a problem writing a c program that makes a telnet connection and writes some command.
The shell command is something like this:
------------------------------------------------------------------
>
>telnet 141.111.231.132 3300
ENTER COMMAND: login "<--- I' wirte a command (ex... (5 Replies)
Hi, guys:
I am working on my shell using c. How can I use pipe to implement the following?
ls -l 1>> | grep hellp 1<< 2>> | less 2<<
(the output of ls goes to grep, and the output of grep goes to less)
Thanks
Please use and tags when posting code, data or logs etc. to preserve... (1 Reply)
Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Hi All,
I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.
The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Hi guys,
I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file
for eg:
file 1:
xx|yy|"xyz|zzz"|zzz|12...
using below awk command
awk 'BEGIN {FS=OFS="|" } print $3
i would get xyz
But i want as :
xyz|zzz to consider as whole column... (13 Replies)
Hello,
I have an ffmpeg bash script which is working nice and
I need to do the same for other sources.
To create new scripts and to deal with multiple bash files sounds not logical. It is a bit hard to manage for me..
I wondered if it was possible to make my input file as variable.
Then I... (1 Reply)
Discussion started by: baris35
1 Replies
LEARN ABOUT HPUX
pipe
pipe(2) System Calls Manual pipe(2)NAME
pipe() - create an interprocess channel
SYNOPSIS DESCRIPTION
creates an I/O mechanism called a pipe and returns two file descriptors, fildes[0] and fildes[1]. fildes[0] is opened for reading and
fildes[1] is opened for writing.
A read-only file descriptor fildes[0] accesses the data written to fildes[1] on a first-in-first-out (FIFO) basis. For details of the I/O
behavior of pipes see read(2) and write(2).
By default, HP-UX pipes are not STREAMS-based. It is possible to generate the kernel so that all pipes created on a system are STREAMS-
based. This can only be done for HP-UX releases 10.0 and later. STREAMS-based FIFOs (created by or are not supported on HP-UX.
To generate a kernel that supports STREAMS-based pipes:
o STREAMS/UX must be installed.
o The module and the driver must be included in the file. (When STREAMS/UX is installed, and are automatically added to the system
file.)
o The tunable parameter (see streampipes(5)) must be set to 1 in the file. (This is not automatically done when STREAMS/UX is
installed.)
o The kernel must be generated and the system rebooted. Once this is done, all pipes created by will be STREAMS-based.
For more information, see
EXAMPLES
The following example uses to implement the command string
RETURN VALUE
returns one of the following values:
Successful completion.
Failure.
is set to indicate the error.
ERRORS
sets to one of the following error values if the corresponding condition is true.
or more file descriptors are currently open.
The system file table is full.
The file system lacks sufficient space to create the pipe.
Could not allocate resources for both Stream heads
(STREAMS-based pipes only).
SEE ALSO sh(1), read(2), write(2), popen(3S), privileges(5), streampipes(5), streamio(7).
STANDARDS CONFORMANCE pipe(2)