ruchika
08-20-2003, 09:50 PM
Hi,
I am new to Linux and have to write a modem driver that sends data out on serial port and listens for Ring interrupt.
1) Can this be done by writing a shell script that waits on serial interrupts (eg. a shell scripts that listens for ring interrupt)?
2) Does anyone have a sample shell script that does something similar?
3) Does Linux have a callback/notify mechanism where a process can be notified if an event occurs? I want the script to notify a process if it gets Ring interrupt.
4) When a process starts a shell script can the process continue to run along with the script?
Your help is highly appreciated.
Thanks,
Ruchika
I am new to Linux and have to write a modem driver that sends data out on serial port and listens for Ring interrupt.
1) Can this be done by writing a shell script that waits on serial interrupts (eg. a shell scripts that listens for ring interrupt)?
2) Does anyone have a sample shell script that does something similar?
3) Does Linux have a callback/notify mechanism where a process can be notified if an event occurs? I want the script to notify a process if it gets Ring interrupt.
4) When a process starts a shell script can the process continue to run along with the script?
Your help is highly appreciated.
Thanks,
Ruchika