08-19-2011
Quote:
Originally Posted by
cambridge
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.
![Question Smilie](https://www.unix.com/images/icons/icon51.png)
Well, you can't do that with posix signals in any environment. If multiple clients signal the daemon simultaneously, using the same signal number, it's possible that the daemon will only receive that signal once. While if instead the daemon reads a fifo, multiple clients can write to it without having their messages lost. And, so long as the messages are smaller than or equal to PIPE_BUF bytes, multiple clients writing to the same fifo will each have their messages written atomically, without interleaving.
Regards,
Alister
Last edited by alister; 08-19-2011 at 06:09 AM..
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 DEBIAN
sysprofile
SYSPROFILE(8) System Manager's Manual SYSPROFILE(8)
NAME
sysprofile - modular centralized shell configuration
DESCRIPTION
sysprofile is a generic approach to configure shell settings in a modular and centralized way mostly aimed at avoiding work for lazy sysad-
mins. It has only been tested to work with the bash shell.
It basically consists of the small /etc/sysprofile shell script which invokes other small shell scripts having a .bash suffix which are
contained in the /etc/sysprofile.d/ directory. The system administrator can drop in any script he wants without any naming convention
other than that the scripts need to have a .bash suffix to enable automagic sourcing by /etc/sysprofile.
This mechanism is set up by inserting a small shell routine into /etc/profile for login shells and optionally into /etc/bashrc and/or
/etc/bash.bashrc for non-login shells from where the actual /etc/sysprofile script is invoked:
if [ -f /etc/sysprofile ]; then
. /etc/sysprofile
fi
For using "sysprofile" under X11, one can source it in a similar way from /etc/X11/Xsession or your X display manager's Xsession file to
provide the same shell environment as under the console in X11. See the example files in /usr/share/doc/sysprofile/ for illustration.
For usage of terminal emulators with a non-login bash shell under X11, take care to enable sysprofile via /etc/bash.bashrc. If not set
this way, your terminal emulators won't come up with the environment defined by the scripts in /etc/sysprofile.d/.
Users not wanting /etc/sysprofile to be sourced for their environment can easily disable it's automatic mechanism. It can be disabled by
simply creating an empty file called $HOME/.nosysprofile in the user's home directory using e.g. the touch(1) command.
Any single configuration file in /etc/sysprofile.d/ can be overridden by any user by creating a private $HOME/.sysprofile.d/ directory
which may contain a user's own version of any configuration file to be sourced instead of the system default. It's names have just to
match exactly the system's default /etc/sysprofile.d/ configuration files. Empty versions of these files contained in the $HOME/.syspro-
file.d/ directory automatically disable sourcing of the system wide version.
Naturally, users can add and include their own private script inventions to be automagically executed by /etc/sysprofile at login time.
OPTIONS
There are no options other than those dictated by shell conventions. Anything is defined within the configuration scripts themselves.
SEE ALSO
The README files and configuration examples contained in /etc/sysprofile.d/ and the manual pages bash(1), xdm(1x), xdm.options(5), and
wdm(1x). Recommended further reading is everything related with shell programming.
If you need a similar mechanism for executing code at logout time check out the related package syslogout(8) which is a very close compan-
ion to sysprofile.
BUGS
sysprofile in its current form is mainly restricted to bash(1) syntax. In fact it is actually a rather embarrassing quick and dirty hack
than anything else - but it works. It serves the practical need to enable a centralized bash configuration until something better
becomes available. Your constructive criticism in making this into something better" is very welcome. Before i forget to mention it: we
take patches... ;-)
AUTHOR
sysprofile was developed by Paul Seelig <pseelig@debian.org> specifically for the Debian GNU/Linux system. Feel free to port it to and use
it anywhere else under the conditions of either the GNU public license or the BSD license or both. Better yet, please help to make it into
something more worthwhile than it currently is.
SYSPROFILE(8)