said:
>-- 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?
There's are addin REXX libraries to support all of this if you need fancy.
For simple use, open the file for write and others will not be allowed to
write it. I'd have to look up the exact error. Other REXX scripts will
probably see "NOT READY". Real programs () will probably see Access
Denied.
>-- How can an executing REXX .cmd file find out if it is already
>running?
Again, addin libraries. Simple cases can be handled with lock files.
HTH,
Steven
--
-----------------------------------------------------------
Steven Levine MR2/ICE #10183 Warp4/FP11
-----------------------------------------------------------
=====================================================
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 <<
>> Next Message >>
Return to [ 26 |
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.