Sponsored Content
Full Discussion: bash dropping SIGHUPs
Top Forums Shell Programming and Scripting bash dropping SIGHUPs Post 302548690 by alister on Friday 19th of August 2011 04:43:38 AM
Old 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.Smilie
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

strintercept dropping message on unixware

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

Sed command dropping last record in File

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

Free Linux Memory by Dropping Caches

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

Dropping Records for unknown reason in awk script

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

Download speed gradually dropping

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

Names dropping out of /etc/aliases

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

Dropping Connection

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

Create same file name to directory name without dropping it

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

PF refreshes dropping user connections

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

Pc's dropping connection to NFS

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
auditd(1m)																auditd(1m)

NAME
auditd - Starts the DCE Audit Daemon. SYNOPSIS
auditd [-t trail_file] [-a] [-s size] [-wrap] [-w svc_route] [-d debug_level] OPTIONS
Specifies the pathname of the audit trail file used by the Audit daemon. The default path of the audit trail file is dcelo- cal/var/aud/adm/central_trail. If an audit trail file name (instead of an absolute pathname) is specified, the file will be created in the dcelocal/var/aud/adm/ directory. Audits the Audit daemon's control interface access. Sets a warning threshold on the size of the audit trail file. The Audit daemon displays a warning message each time an audit record is appended to the audit trail after the threshold has been reached. Wraps the recording of audit events to the beginning of the audit trail file when its size limit is reached. The default action when the size limit has been reached is to stop auditing. Specifies where each level of serviceability messages are routed. The svc_route argument is divided into three fields, separated by colons - the level, a routing identifier, and a routing parameter: severity:how:where See svcroute(5) for possible values for these fields. Specifies debugging level of sub-components. The debug_level argument contains four fields separated by a colon: component:flags:how:where See svcroute(5) for possible values of these fields. DESCRIPTION
The auditd command starts the Audit daemon. The Audit daemon must be run on the host before the audit clients. The Audit daemon can only service audit clients that are on the host where it is running. Thus, an Audit daemon must be installed and run on every host in the cell that has audit clients (audit clients include DCE servers and user-written application servers). The Audit daemon has two functions. It maintains the filter files which are shared by all audit clients running on the host. It also pro- vides an audit record logging service to these clients. The Audit daemon runs under the local host's machine principal identity (host/hostname/self). A DCE Host daemon (dced) must be running on the local host when auditd is started. Typically, dced and auditd are started at boot time. The auditd process places itself in the background and sends messages indicating it is ready to service requests for updating or querying filters and logging audit records. Privileges Required You must be logged into a privileged account (cell_admin or a member of the audit-admin group) to be able to run auditd. EXAMPLES
The following example starts the Audit daemon using the default audit trail file (dcelocal/var/aud/adm/central_trail): $ auditd The following example starts the Audit daemon and specifies my_trail_file as the audit trail file. $auditd -t my_trail_file The following example starts the Audit daemon and specifies where each level of serviceability messages is going to be routed. $ auditd -w FATAL:FILE:/dev/console -w NOTICE:FILE:/opt/dcelocal/var/audit/adm/svc_log The following example starts the Audit daemon and specifies the debugging level. $ auditd -d 1,esl.9 RELATED INFORMATION
aud(1m), audevents(1m), audfilter(1m), audtrail(1m), dcecp(1m). auditd(1m)
All times are GMT -4. The time now is 08:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy