08-19-2011
The trouble with using a FIFO is that's not going to support multiple clients attempting to contact the daemon simultaneously ...
Maybe I've just reached the limit of what is achievable in bash.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
i have unixware 2.1.
A warning message Strintercept dropping message start scrolling on screen.
does anyone have any idea what it means? :confused:
and some times system hangs with all terminals.? (2 Replies)
Discussion started by: kapilverma_udr
2 Replies
2. Shell Programming and Scripting
Hello:
I wrote a sed statement that is inserting 3 variables at the beginning of each record in a comma-delimited file:
for FILE in *gnrc_lkup.csv
do
c=`echo $FILE | cut -c1-3`
d=`grep $c $RTLIST | cut -c4-6`
e=`grep $c $RTLIST | cut -c7`
f=`grep $c $RTLIST | cut -c8`
sed -e... (5 Replies)
Discussion started by: bheeke
5 Replies
3. Linux
Linux Kernels 2.6.16 and up provide a way to instruct the kernel to drop the page cache, inode and dentry caches on command. This tip can help free Linux memory without a reboot.
Note: This is a non-destructive operation. Dirty objects are not freeable, hence; you must run sync beforehand.
... (0 Replies)
Discussion started by: Neo
0 Replies
4. Shell Programming and Scripting
Hi,
I have written the following it is pretty sloppy but I don't see any reason why I should be losing 54 records from a 3.5 million line file after using it.
What I am doing:
I have a 3.5 million record file with about 80,000 records need a correction. They are missing the last data from... (8 Replies)
Discussion started by: mkastin
8 Replies
5. Red Hat
RH 4.2.1.13
Hi All,
I just installed RH and I am able to connect to the internet via my router.
My high speed is such that I should be able to download at over 1000 kb/s.
While trying to download oracle database, it is starting at above 1000kb/s
and gradually droping to below 40kb/s which... (1 Reply)
Discussion started by: jxh461
1 Replies
6. Solaris
We are having a problem with names being dropped from the /etc/mail/aliases file. There's no pattern to the names being dropped. It is very random.
We are running sendmail 8.14.3 on a Solaris 10 server. There are about 9000 lines in the /etc/mail/aliases file.
Is there a limitation on... (8 Replies)
Discussion started by: TFord
8 Replies
7. Emergency UNIX and Linux Support
Hi folks,
We are pushing messages to an IBM MQ queue on a AIX server where our client connects to from their Windows server and pick up the message. The
problem is that every now and then the connection drops and the client application cannot pick up the message. Someone has to bring up the... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
8. Red Hat
Hi,
Under '/home' directory, there is one file called 'maddy'.Usually there used to be directories under /home directory.
# ls -alrt
total 132
drwx------ 2 hcladmin sys 4096 May 30 10:54 admin
drwxr-xr-x 29 root root 4096 Aug 27 03:54 ..
drwx------ 2 v6admin dba ... (3 Replies)
Discussion started by: Maddy123
3 Replies
9. Solaris
We often have to update our ipfilter rules on Solaris 11. svcadm refresh ipfilter drops users every time (we're logged in via the global and then a zlogin to the zone in question).
Is there any way not to drop user's connections when modifying ipfilter rules and refreshing the service? (2 Replies)
Discussion started by: LittleLebowski
2 Replies
10. UNIX for Beginners Questions & Answers
Hi there.
I have a problem with pc's dropping their mounts to a network Nas. The Nas is a Synology DiskStation, it has enough concurrent connections which I think off the top of my head is about 200 and I only need 120.
So, question 1 is why will a unix box drop a mount, and 2, how can I... (2 Replies)
Discussion started by: MuntyScrunt
2 Replies
LEARN ABOUT REDHAT
mkfifo
MKFIFO(3) Linux Programmer's Manual MKFIFO(3)
NAME
mkfifo - make a FIFO special file (a named pipe)
SYNOPSIS
#include <sys/types.h>
#include <sys/stat.h>
int mkfifo(const char *pathname, mode_t mode);
DESCRIPTION
mkfifo makes a FIFO special file with name pathname. mode specifies the FIFO's permissions. It is modified by the process's umask in the
usual way: the permissions of the created file are (mode & ~umask).
A FIFO special file is similar to a pipe, except that it is created in a different way. Instead of being an anonymous communications chan-
nel, a FIFO special file is entered into the file system by calling mkfifo.
Once you have created a FIFO special file in this way, any process can open it for reading or writing, in the same way as an ordinary file.
However, it has to be open at both ends simultaneously before you can proceed to do any input or output operations on it. Opening a FIFO
for reading normally blocks until some other process opens the same FIFO for writing, and vice versa. See fifo(4) for non-blocking handling
of FIFO special files.
RETURN VALUE
The normal, successful return value from mkfifo is 0. In the case of an error, -1 is returned (in which case, errno is set appropriately).
ERRORS
EACCES One of the directories in pathname did not allow search (execute) permission.
EEXIST pathname already exists.
ENAMETOOLONG
Either the total length of pathname is greater than PATH_MAX, or an individual file name component has a length greater than
NAME_MAX. In the GNU system, there is no imposed limit on overall file name length, but some file systems may place limits on the
length of a component.
ENOENT A directory component in pathname does not exist or is a dangling symbolic link.
ENOSPC The directory or filesystem has no room for the new file.
ENOTDIR
A component used as a directory in pathname is not, in fact, a directory.
EROFS pathname refers to a read-only filesystem.
CONFORMING TO
POSIX.1
SEE ALSO
mkfifo(1), read(2), write(2), open(2), close(2), stat(2), umask(2), fifo(4)
Linux 1.2.13 1995-09-03 MKFIFO(3)