Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

perl - detect device connected

by Zarkon (Initiate)
on Nov 08, 2006 at 10:46 UTC ( #582850=perlquestion: print w/replies, xml ) Need Help??

Zarkon has asked for the wisdom of the Perl Monks concerning the following question:

Hello there, Can someone help me with this task: You know in Linux, that there is a HAL daemon who can detect when you connect new hardware to your system. Well i will use that, but i need to know when the device is connected. Is there a way to complete this task with perl. Is there a way to catch some kind of interruption or signal and to run the script to get the data from the connected device.

Replies are listed 'Best First'.
Re: perl - detect device connected
by davorg (Chancellor) on Nov 08, 2006 at 11:00 UTC
Re: perl - detect device connected
by gellyfish (Monsignor) on Nov 08, 2006 at 13:14 UTC

    On Linux you would typically be using hotplug, there is no reason why you shouldn't be able to write an 'agent' in Perl as far as I can see, or alternatively you could run a Perl program from an existing 'agent' script.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://582850]
Approved by prasadbabu
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2023-04-02 06:03 GMT
Find Nodes?
    Voting Booth?

    No recent polls found