comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Files opened by other processes
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Files opened by other processes [message #30922] Tue, 28 May 2002 18:46
mchinand is currently offline  mchinand
Messages: 66
Registered: September 1996
Member
In article <CbVI8.5685$Oj7.1227417@typhoon.ne.ipsvc.net>,
Daniel Peduzzi <peduzzi@attbi.com> wrote:
> Has anybody been able to use IDL to detect if *other* processes
> have a particular file open?
>
> As an example, let's say I would like to open a file for read access
> after it has been written by an FTP process. I certainly don't
> want to open it until the file transfer is complete...but how will I
> know?
>
> I looked at the FSTAT function, but unless I've overlooked
> something, I don't think it will suffice. This is on a UNIX system
> running SunOS, so if I have to write something in C for IDL to
> spawn, I guess I'll be posting to another newsgroup soon. ;- )
>
> Dan
>
> Daniel C. Peduzzi
> peduzzi@attbi.com
>
>

You could use spawn to run fuser to see if any processes are using a
particular file. Fuser is a Unix utility the lists the IDs of processes
that are using a file.

--Mike
--
--
Michael Chinander University of Chicago
m-chinander@uchicago.edu (773)834-5101 (Voice) (773)702-0371 (Fax)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL ROT function
Next Topic: color in widgets

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 00:20:06 PDT 2025

Total time taken to generate the page: 0.24032 seconds