RE: [U2] Managing open files

2006-12-22 Thread colin.alfke
If you're on a late enough version of UD have a look at SYSTEM(50). I can see it on my system as of 6.0.12 but not at 5.1.27. Here is a snippet from help system 50 The UniBasic SYSTEM(50) function returns a list of files open in UniBasic as a dynamic array. The first field is multivalued, and

RE: [U2] Managing open files

2006-12-22 Thread Robert Paterson
Why not just change the UniData tunable for MAX_OPEN_FILE - we normally set this to 2000? That overcomes some limitations imposed by SB+ when regenerating expressions... Robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Susan Joslyn Sent: 13 Dec

RE: [U2] Managing open files

2006-12-22 Thread Susan Joslyn
PROTECTED] Sent: Friday, December 22, 2006 9:15 AM To: u2-users@listserver.u2ug.org Cc: [EMAIL PROTECTED] Subject: RE: [U2] Managing open files If you're on a late enough version of UD have a look at SYSTEM(50). I can see it on my system as of 6.0.12 but not at 5.1.27. Here is a snippet from help

RE: [U2] Managing open files

2006-12-22 Thread colin.alfke
HELP SYSTEM gave me this info. The file names are in the array that system(50) creates. 1,2 is the number of open files and there is an attribute in the array for each file. PORT.STATUS PID ### FILEMAP Is the only way I can think of to get the list of filenames from another process. I'm not

RE: [U2] Managing open files

2006-12-22 Thread Susan Joslyn
* CRT @(0,23):Finished ;INPUT JUNK RETURN -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 22, 2006 9:15 AM To: u2-users@listserver.u2ug.org Cc: [EMAIL PROTECTED] Subject: RE: [U2] Managing

RE: [U2] Managing open files

2006-12-14 Thread John Jenkins
Susan On Unix at least you can use the fuser -u filename command. e.g. find dir_path -exec fuser -u {} \;/work/pidlog The pidlog file will contain an entry for every file and each file will have the list of PIDs that have the file open. You can use the text file to collate a counted total of