Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Re: Making a perl program look like a regular file on Win32?

by SmugX (Beadle)
on Mar 03, 2004 at 12:42 UTC ( #333524=note: print w/replies, xml ) Need Help??


in reply to Re: Making a perl program look like a regular file on Win32?
in thread Making a perl program look like a regular file on Win32?

Thanks for all your comments.

Roger, yes, your "insane" suggestion is along the lines that I was thinking. :-) However, I fear the Windows Driver Dev Kits may be a little beyond my Perl dev skills. :-( (I will go on the hunt for software that may achieve this, however.)

The pipe suggestions would normally be ideal, but don't work for my specific circumstance. Basically, the DOS app runs continually, but periodically reads the file which I want to intercept access to. (My fault for not detailing that in my problem description!)

You have all given me food-for-thought, however, and I will renew my searching and go read up on named pipes!

Many thanks, Neil

  • Comment on Re: Re: Making a perl program look like a regular file on Win32?

Replies are listed 'Best First'.
Re: Re: Re: Making a perl program look like a regular file on Win32?
by clintp (Curate) on Mar 03, 2004 at 14:01 UTC
    I've had good luck with feeding DOS apps UNC names (\\system\file) in the past, if you can make the file being read a UNC filename then host it on a separate box.

    This "separate box" being a Unix machine using Samba (or some other file sharing system). The "file" can then be a unix named pipe as mentioned in previous responses, or you can hack samba directly to run programs to generate I/O to fill this "file" as it's being served out.

    Well, I mean as long as we're talking insane ideas....

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://333524]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-06-10 01:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (36 votes). Check out past polls.

    Notices?