Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.unix.shell > #1297 > unrolled thread
| Started by | Saqib Ali <saqib.ali.75@gmail.com> |
|---|---|
| First post | 2011-07-15 15:42 -0700 |
| Last post | 2011-07-16 11:32 +1200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.unix.shell
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
| From | Saqib Ali <saqib.ali.75@gmail.com> |
|---|---|
| Date | 2011-07-15 15:42 -0700 |
| Subject | How 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]
| From | Ian Collins <ian-news@hotmail.com> |
|---|---|
| Date | 2011-07-16 11:32 +1200 |
| Message-ID | <98c12lFv3qU4@mid.individual.net> |
| In reply to | #1297 |
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.unix.shell
csiph-web