Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #7848 > unrolled thread

How to detect insertion of USB drive on Solaris 10 box?

Started bySaqib Ali <saqib.ali.75@gmail.com>
First post2011-07-15 15:42 -0700
Last post2011-07-16 11:32 +1200
Articles 2 — 2 participants

Back to article view | Back to comp.lang.c++


Contents

  How to detect insertion of USB drive on Solaris 10 box? Saqib Ali <saqib.ali.75@gmail.com> - 2011-07-15 15:42 -0700
    Re: How to detect insertion of USB drive on Solaris 10 box? Ian Collins <ian-news@hotmail.com> - 2011-07-16 11:32 +1200

#7848 — How to detect insertion of USB drive on Solaris 10 box?

FromSaqib Ali <saqib.ali.75@gmail.com>
Date2011-07-15 15:42 -0700
SubjectHow to detect insertion of USB drive on Solaris 10 box?
Message-ID<fafb3092-7e21-4b98-814d-660ae2061b48@b2g2000vbo.googlegroups.com>
Hi

I'm working on a SunOS  5.10 box.
I'm inserting a USB flash-drive into the USB port.

I would like to know how to detect the insertion of this device and
how to mount it so that I can read/write to it.

Could someone please advise?


As a secondary task, I would like to do the above purely in C++
without making any system calls. Any advice on that subject would also
be appreciated.


- Saqib

[toc] | [next] | [standalone]


#7853

FromIan Collins <ian-news@hotmail.com>
Date2011-07-16 11:32 +1200
Message-ID<98c12lFv3qU4@mid.individual.net>
In reply to#7848
On 07/16/11 10:42 AM, Saqib Ali wrote:
> Hi
>
> I'm working on a SunOS  5.10 box.
> I'm inserting a USB flash-drive into the USB port.
>
> I would like to know how to detect the insertion of this device and
> how to mount it so that I can read/write to it.
>
> Could someone please advise?

Try com.unix.solaris.

> As a secondary task, I would like to do the above purely in C++
> without making any system calls. Any advice on that subject would also
> be appreciated.

You can't, unless you keep trying to open the device filesystem in a 
polling loop.

-- 
Ian Collins

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c++


csiph-web