- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- File Monitoring Service
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 04:39 AM
тАО05-12-2005 04:39 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 05:20 PM
тАО05-12-2005 05:20 PM
Re: File Monitoring Service
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 06:02 PM
тАО05-12-2005 06:02 PM
Solutionif I understand your references to 'NFS mount' correctly, you have the directory on the Unix box mounted via NFS from the OpenVMS system, so you could see the file from OpenVMS system with a $ DIRECTORY command ?
If so, you could use a simple DCL procedure using F$SEARCH to 'wait' for the appearance of the file and then start processing it:
$loop:
$ file = F$SEARCH("X.X")
$ IF file .nes. "" THEN $ GOTO process_file
$ WAIT 0:0:5
$ GOTO loop
$!
$process_file:
$ SHOW SYMB file
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 06:25 PM
тАО05-12-2005 06:25 PM
Re: File Monitoring Service
I agree with Volker that this is the simplier way. You could submit such procedure in a batch queue to get a "detached" process (I put detached in quotes because this is not a real detached process).
If you want to go on the hard way, there is the VMS documentation:
http://h71000.www7.hp.com/doc/os82_index.html
For system services:
http://h71000.www7.hp.com/doc/82FINAL/4527/4527PRO.HTML
for library routines:
http://h71000.www7.hp.com/doc/82final/5932/5932PRO.HTML
probably you will need RMS:
http://h71000.www7.hp.com/doc/73final/6027/6027PRO.HTML
For the freeware look at:
http://h71000.www7.hp.com/openvms/freeware/index.html
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 06:37 PM
тАО05-12-2005 06:37 PM
Re: File Monitoring Service
A slight variation on Volker's procedure...
Depending on the size of the file, it may exist
but still be in the process of being written.
Try opening it for write access, if it fails
go back to waiting.
$loop:
$ file = F$SEARCH("X.X")
$ IF file .nes. "" THEN $ GOTO process_file
$wait_a_bit:
$ WAIT 0:0:5
$ GOTO loop
$!
$process_file:
$ close/nolog channel
$ open/read/write/error=wait_a_bit channel 'file'
$ close/nolog channel
$ SHOW SYMB file
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-12-2005 09:06 PM
тАО05-12-2005 09:06 PM
Re: File Monitoring Service
I agree with David that you should check for the file being closed already.
However, I do not fully trust in NOT being able to write to a _UNIX_ file while it is open. Also, the chance exists that _YOUR_ test-OPEN interferes with the writing app.
Can you have/get any control over the applic that _WRITES_ the file?
My usual approach is to have the generating applic rename the file after closing.
Then checking for the renamed file results in a found file being fullt available for you.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 02:01 AM
тАО05-13-2005 02:01 AM
Re: File Monitoring Service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2005 02:03 AM
тАО05-13-2005 02:03 AM