Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by crabbdean (Pilgrim)
on Mar 03, 2004 at 14:59 UTC ( [id://333550]=note: print w/replies, xml ) Need Help??


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

You might want to check out the Perl module Win32::ChangeNotify. This will monitor a file or directory for changes and then from there you can instruct it to do whatever you like when it detects a change. I'd suggest this process:

1. Monitor and watch for change in a while loop
2. On change, run perl commands to output CSV
3. Issue a "system" call for the external Windows app you refer to
4. When done return to 1. (that is stay in the loop).
5. Exit loop if errors occur.

Hope that helps.

Dean

Programming these days takes more than a lone avenger with a compiler. - sam
  • Comment on Re: Making a perl program look like a regular file on Win32?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found