SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 25 | October | 1999 ]

<< Previous Message <<


Date: Mon, 25 Oct 1999 20:21:57 PDT
From: "Aaron Lawrence" <aaronl@pec.co.nz >
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: REXX file lock/unlock, program instances

Content Type: text/plain

> -- How do I lock a file, unlock it after using it, and what error code
> does another program receive if it attempts to open/lock an
> already-locked file?
In rexx, all files are opened non-share, so are automatically locked (AFAIK) and
no other program can access them

> -- How can an executing REXX .cmd file find out if it is already running?
Some sort of nasty external flag e.g. create a file at startup. Check if it
already exists. Delete at finish etc.
Unfortunately since Rexx is not really a "program" you can't use OS/2 semaphores
which are better, because with a real program they are automatically destroyed
if the program ends.

Basically Rexx is best not used for situations where multiprocessing matters (or
any "serious" task) IMHO

Aaron

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message <<

Return to [ 25 | October | 1999 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.