Sponsored Content
Top Forums Shell Programming and Scripting Reading from blocking fifo pipe in shell script Post 302116677 by Franklin52 on Monday 7th of May 2007 01:50:02 PM
Old 05-07-2007
cat is waiting for input from the keyboard, enter CTRL+D to close it.

Regards
 

10 More Discussions You Might Find Interesting

1. Programming

Pipe & fifo....

Could someone Help me with this code please? #include <stdio.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <fcntl.h> #define SIZE_B 256 /*buffer's size */ #define NUM_ARG 20 /* max number of args for any command */ int... (4 Replies)
Discussion started by: M3xican
4 Replies

2. UNIX for Advanced & Expert Users

PIPE and FIFO buffer size

Hello! How I can increase (or decrease) the predefined pipe buffer size? Thanks! (1 Reply)
Discussion started by: Jus
1 Replies

3. UNIX for Dummies Questions & Answers

fifo or named pipe working?

Can someone explain to me the working of fifo() system call using simple C programs so that I can implement them in the UNIX environement? (1 Reply)
Discussion started by: lvkchaitanya
1 Replies

4. Shell Programming and Scripting

Non-blocking pipe

Hello, Would this be an acceptable way of creating a non-blocking pipe. Basically I want to create kind of a server client arch. This code would be in the server, and I don't want to have to wait for clients to read before moving on to the next client. One problem I can see is if... (4 Replies)
Discussion started by: cdlaforc
4 Replies

5. UNIX for Advanced & Expert Users

Why not SIGPIPE for readers of pipe/FIFO?

Hi This is a exercise question from Unix network programming vol2. Why the SIGPIPE signal is generated only for writers when readers disappear. why not it is generated for readers when writer disappears. I guess, if the writer didn't get any response like the reader gets EOF, it will... (4 Replies)
Discussion started by: kumaran_5555
4 Replies

6. Homework & Coursework Questions

FIFO possible blocking or unknown error

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Create a chat program using two FIFOs one for writing and the other for reading. The problem is something... (1 Reply)
Discussion started by: Ebodee
1 Replies

7. Programming

Pipe & fifo size limit

Hi guys. 1. how much is the size of pipe?(i mean the buffer size) 2. is this size different in various UNIX derivations? 3. what happens if we write to a full pipe? does it block until get some free space(the other side receive data) or returns an error? 3. FIFO s are physical files on the... (2 Replies)
Discussion started by: majid.merkava
2 Replies

8. Shell Programming and Scripting

awk reading from named pipe (fifo)

I'm trying to read a fifo using awk and comming across some problems. I'm writing to the fifo from multiple processes invoked by GNU Parallel: mkfifo my_fifo awk '{ a = a + $2 } END { for (i in a) print i, a }' my_fifo | sort -nk1 > sorted_output grep -v '^@' massive_file | parallel... (3 Replies)
Discussion started by: nathanhaigh
3 Replies

9. Shell Programming and Scripting

Using Named pipe in shell script

Hi, I want to use a Named pipe to get input from a growing file for further processing. When I prototype this scenario using a while loop, the data is not written to the named pipe. This the script I use to get data into the Named pipe: #!/bin/ksh mkfifo pipe while (( n <= 10 )) do echo... (2 Replies)
Discussion started by: sudvishw
2 Replies

10. Shell Programming and Scripting

UNIX fifo concurrent read from a named pipe

I have created a fifo named pipe in solaris, which writes the content of a file, line by line, into pipe as below: $ mkfifo namepipe $ cat books.txt "how to write unix code" "how to write oracle code" $ cat books.txt >> namepipe & I have a readpipe.sh script which reads the named... (2 Replies)
Discussion started by: naveen mani
2 Replies
trans(1int)															       trans(1int)

Name
       trans - translation tool for use with source message catalogs

Syntax
       trans [ -c ] [ -o name ] file.msf

Description
       The command assists in the translation of source message catalogs.  The command reads input from file.msf and writes its output to either a
       file named or a file you name on the command line.  The command displays file.msf in a multiple window screen that lets you  simultaneously
       see  the  original message, the translated text you enter, and any messages from the command.  This multiple window screen is easier to use
       for translating messages than a single window screen.

       The top window in the multiple window screen displays the text in the message source file file.msf.  The editor displays the  current  mes-
       sage in reverse video.

       In  the	center window, displays a prompt that asks you to enter a translated message.  You use a control key editor to move the cursor and
       delete text in the center window.  The control key sequences are defined as follows:

       ------------------------------------------
       Key Sequence   Meaning
       ------------------------------------------
       CTRL/k	      Display control key help
       CTRL/h	      Back space
       CTRL/l	      Forward space
       CTRL/w	      Back word
       CTRL/f	      Forward word
       CTRL/e	      Move to end of input
       CTRL/b	      Move to beginning of input
       CTRL/n	      Next line
       CTRL/p	      Previous line
       CTRL/u	      Delete input
       CTRL/i	      Insert mode (default)
       CTRL/r	      Replace mode
       DEL	      Delete previous character
       ------------------------------------------

       If you need to span more than one line with the translated text, type a backslash () and press the RETURN key to enable line continuation.
       After you finish entering the translated text, press the RETURN key to signal that you have finished translating that message.

       The  bottom  window  displays  any messages generated by If an error occurs, prompts you to re-enter the entire line, including the message
       label or number.

Options
       -c   Display comment lines beginning with a dollar sign ($) for translation, in addition to messages.

       -o   Call the output file name.	The default is output file name is

Restrictions
       Your terminal must be 80 columns by 24 lines for to display its three-window screen.

       You cannot interrupt a session and restart it at the point you stopped. You must complete the all the changes to a file	before	exiting  a
       file.

See Also
       intro(3int), extract(1int), gencat(1int), strextract(1int), strmerge(1int)
       Guide to Developing International Software

																       trans(1int)
All times are GMT -4. The time now is 06:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy