SCOUG-Programming Mailing List Archives
Return to [ 25 |
October |
1999 ]
<< Previous Message <<
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.
|