09-21-2008
Maybe something like:
_kill() { sleep 10m; pkill -9 -f 'tail -f /path/to/n2bb.log'; }; _tail() { _kill & \
tail -f /path/to/n2bb.log|grep 0x12|nl; _tail; }; _tail
May look odd but still is a oneliner.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I want to know the interrupt passed to a process through 'ulimit'
I am running a process which gets killed when the 'ulimit -t' reaches.
But after killing the process I want to start another process which would
send a message or do some clean up or anything at all.
To do the same I am... (5 Replies)
Discussion started by: mrnuttynuts
5 Replies
2. UNIX for Dummies Questions & Answers
This is on our Ultra 5/10 Sparc with Solaris 9.
I need to store the following (stty) keys in the .profile and /etc/profile files as
shown here.
erase "Back Space Key"
Interrupt "Ctrl + C"
I need the exact syntax/procudure as I have to set these two keys whenever I login to the terminal... (1 Reply)
Discussion started by: chrs0302
1 Replies
3. UNIX for Advanced & Expert Users
Hi there,
My first post here. Currently, i have been experiencing this error quite frequently on a ultra5 com. Things i have done is changing a new hdd and mem modules but i still encounter this error. Some messages from the var/adm
WARNING: uncorrectable error from pci0 (upa mid 0) during... (0 Replies)
Discussion started by: kerwen
0 Replies
4. UNIX for Dummies Questions & Answers
hello all
since a process running in kernel mode cannnot be preempted by any other process what would be the status of Timer interrupt that occurs when the time quantum of a process is elapsed?
thanks (2 Replies)
Discussion started by: compbug
2 Replies
5. Shell Programming and Scripting
Can anybody help me out in sending parameters from sql*plus script to unix shell script without using flat files..
Initially in a shell script i will call sql*plus and after getting some value from some tables, i want that variable value in unix shell script. How can i do this?
Please tell me... (2 Replies)
Discussion started by: Hara
2 Replies
6. UNIX for Advanced & Expert Users
Hi,
i have an rhel box with around 20 %soft every 2 seconds. The box is idle.
How do i start hunting down what's causing this? i believe /proc/interrupts is hardware related, procinfo is basically the same. where else can i look?
thanks,
Marc (5 Replies)
Discussion started by: marcpascual
5 Replies
7. Shell Programming and Scripting
Hi all,
can anyone tell me how to generate control+c interrupt through shell script. (2 Replies)
Discussion started by: rohitmahambre
2 Replies
8. UNIX for Advanced & Expert Users
I receive the following warning messages on a very new machine which has FreeBSD 8.1 x64 installed on it:
Interrupt storm detected on "irq 20" throttling interrupt source
It is unclear what this means and what its origins are (motherboard? CPU? RAM?).
I can start the desktop and the message is... (4 Replies)
Discussion started by: figaro
4 Replies
9. UNIX for Advanced & Expert Users
Hi, all:
Is there any shell command to show which interrupt handler handle which interrupt number in the system?
li,kunlun (5 Replies)
Discussion started by: liklstar
5 Replies
10. What is on Your Mind?
Hi Friends
any know how became a friend in this Android Programming Language (0 Replies)
Discussion started by: ljarun
0 Replies
LEARN ABOUT OPENSOLARIS
ddi_idevice_cookie
ddi_idevice_cookie(9S) Data Structures for Drivers ddi_idevice_cookie(9S)
NAME
ddi_idevice_cookie - device interrupt cookie
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI). This interface is obsolete. Use the new interrupt interfaces referenced in Intro(9F). Refer to Writing
Device Drivers for more information.
DESCRIPTION
The ddi_idevice_cookie_t structure contains interrupt priority and interrupt vector information for a device. This structure is useful for
devices having programmable bus-interrupt levels. ddi_add_intr(9F) assigns values to the ddi_idevice_cookie_t structure members.
STRUCTURE MEMBERS
u_short idev_vector; /* interrupt vector */
ushort_t idev_priority; /* interrupt priority */
The idev_vector field contains the interrupt vector number for vectored bus architectures such as VMEbus. The idev_priority field contains
the bus interrupt priority level.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
ddi_add_intr(9F), Intro(9F)
Writing Device Drivers
SunOS 5.11 19 Oct 2005 ddi_idevice_cookie(9S)