How can i set up a realtime thread in linux (shell script/perl) that is realtime, and will read (or be sent information) at any time.
I am looking for something along the lines of:
karlb.sh
loop until END
check file
If Something
Notify someone
If Else
Dont bother
sleep 1
Looking at it this way it would be easier to use in a perl script, anyone know how to do this in perl??
Sorry if it seems a little vague (i know hwat i mean he he)
Kind regards, Karlb.
I am looking for something along the lines of:
karlb.sh
loop until END
check file
If Something
Notify someone
If Else
Dont bother
sleep 1
Looking at it this way it would be easier to use in a perl script, anyone know how to do this in perl??
Sorry if it seems a little vague (i know hwat i mean he he)
Kind regards, Karlb.