Depending on how current your Debian installation is you might have DBUS & HAL installed. There's a command-line tool for DBUS which you can instruct to listen for added devices: (example is a flash drive)
If you pipe this into a loop you should be able to detect just about any HW change.
hello
i'm working on redhat linux which is installed with windows on the same hard disk i would like to get access to windows files throw linux
the question is: how to mount hard disk and peripherals ?
think you (0 Replies)
I have a USB keyboard/mouse combo hooked up to an x86 box and when it loads the mouse works fine, but the ctrl, shift, alt, and i think the function keys don't do anything. Is there a setting I need to change, or a way to manually configure them. There are no drivers, it is supposed to emulate a... (0 Replies)
hey everyone!
i have a Solaris 8 box with me, and i had been using my usb thrumbdrive on it all the time. one day, i was in a rush and i pulled out the thumbdrive without ejecting it or anything. and now i can't detect any thumbdrives at all. i had tried using another thumbdrive, but with no... (2 Replies)
Hi, I am a newbi to linux,
i wana to write a program in C that can detect arrival of a usb flash memory. I want also to find the actual mount point of new inserted flash disk. can anyone help me?
thanks a lot (6 Replies)
Hello. This is my first post to this forum. I've read many of the posts over the last two or three years and I've learned a lot.
I'm creating a live Linux distribution using the Linux Live Scripts -- just as a hobby project -- and I'm wanting to create an automated way for a user to copy the... (7 Replies)
Hi Everyone,
I am using 2.6.26.3-olimex kernel(Embedded system) running on AT91SAM9260. I am using a Logitech USB keyboard.
It is detected as "/dev/input/event0".
I don't know how to detect key press events and read the keys?
Why can't I read the keys using scanf() like funtions?
... (7 Replies)
There is a same named log file that I have on my 2 different android phones. When I plug it into my computer, it appears in the media folder, For example the first android phone:
/media/F6BA-0AF5/folder/A.log
I want to put that into a variable to be manipulated.... (3 Replies)
I've searched a number of sites but thought I'd post it here. I'm want to a detect certain usb device (external camera) that is actively being used by an app on a mac.
My search has led me through looking at the system events log to see if there is a ProductID indicator logged. The device is... (2 Replies)
Greetings.
Seeking guidance on adding a USB barcode reader (BCR) to an HP c3750 workstation with HP-UX 11.11 which is essentially configuring X windows to accept input from both a primary keyboard and a secondary keyboard that happens to be the BCR.
Historically, I have successfully added a BCR... (2 Replies)
Discussion started by: mnkaltenbach
2 Replies
LEARN ABOUT DEBIAN
net::dbus::remoteservice
Net::DBus::RemoteService(3pm) User Contributed Perl Documentation Net::DBus::RemoteService(3pm)NAME
Net::DBus::RemoteService - Access services provided on the bus
SYNOPSIS
my $bus = Net::DBus->find;
my $service = $bus->get_service("org.freedesktop.DBus");
my $object = $service->get_object("/org/freedesktop/DBus");
foreach (@{$object->ListNames}) {
print "$_
";
}
DESCRIPTION
This object provides a handle to a remote service on the bus. From this handle it is possible to access objects associated with the
service. If a service is not running, an attempt will be made to activate it the first time a method is called against one of its objects.
METHODS
my $service = Net::DBus::RemoteService->new($bus, $owner, $service_name);
Creates a new handle for a remote service. The $bus parameter is an instance of Net::DBus, $owner is the name of the client providing
the service, while $service_name is the well known name of the service on the bus. Service names consist of two or more tokens,
separated by periods, while the tokens comprise the letters a-z, A-Z, 0-9 and _, for example "org.freedesktop.DBus". There is generally
no need to call this constructor, instead the "get_service" method on Net::DBus should be used. This caches handles to remote services,
eliminating repeated retrieval of introspection data.
my $bus = $service->get_bus;
Retrieves a handle for the bus to which this service is attached. The returned object will be an instance of Net::DBus.
my $service_name = $service->get_service_name
Retrieves the name of the remote service as known to the bus.
my $owner_name = $service->get_owner_name;
Retrieves the name of the client owning the service at the time it was connected to.
my $object = $service->get_object($object_path[, $interface]);
Retrieves a handle to the remote object provided by the service with the name of $object_path. If the optional $interface parameter is
provided, the object will immediately be cast to the designated interface. NB, it is only neccessary to cast an object to a specific
interface if there are multiple interfaces on the object providing methods with the same name, or the remote object does support
introspection. The returned object will be an instance of Net::DBus::RemoteObject.
AUTHOR
Daniel Berrange <dan@berrange.com>
COPYRIGHT
Copright (C) 2004-2011, Daniel Berrange.
SEE ALSO
Net::DBus::RemoteObject, Net::DBus::Service, Net::DBus
perl v5.14.2 2011-06-30 Net::DBus::RemoteService(3pm)