CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
device I/O interceptor

 



Tom93
New User

Nov 12, 2008, 9:56 AM

Post #1 of 2 (1674 views)
device I/O interceptor Can't Post

I'd like to create a perl script that creates a pseudo-device that shuffles data to-and-from /dev/sg0, making some minor tweaks along the way.
A friend has shown me how to use ioctl to talk to things like /dev/sg0 with perl, but I don't see how to make perl listen to something as if it were a device.

I'm guessing the pseudo-device would be a FIFO, lets call it /dev/psg0.
I'd like to be able to do "sg_ses -p 2 /dev/psg0", and have a perl script listen to what sg_ses sends via /dev/psg0, tweak it a bit and send it on to /dev/sg0, take the response from /dev/sg0 and send it back to sg_ses via /dev/psg0.

I can't find the CPAN module that does this.


KevinR
Veteran


Nov 12, 2008, 10:03 AM

Post #2 of 2 (1673 views)
Re: [Tom93] device I/O interceptor [In reply to] Can't Post

I have no idea how to do what you are asking. If you get no useful replies here ask on www.perlmonks.com and hopefully someone there will have a suggestion or two or twenty.
-------------------------------------------------

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives