Reggie:
First, rename the program "A" in question to another abstract program
name "newA".
Write a new program "A" that will first add a password (maybe the pw
could be the username) to "newA" then create a process that would
execute "newA/pw". When the program completes, remove the password from
"newA". When the session / job / udc ends, remove the password if it
still has one.
Another option. Programmically change the name of the program "A" to
another name that contains a ramdomized control character. then create
and active a process to execute this newly renamed program. When
finished, rename it back. What this does, is to make sure no other
program knows what the name of the new program is, and therefore
ensuring only one version is running at a time. If the program aborts,
it might be difficult to determine what the actual name of the renamed
program actually is. Using priv mode, any errors could be trapped and
the renaming back to the origional is possible.
Another option. Write two programs. The first renames the program "A"
to a name with an embedded control character. The other program renames
it back.
Now on to how this would work. When you do not want direct user
execution, run the first program. Now all further programs will require
a program which creates / activtes and then executes the required
program. Use resource locking to prevent two users from accessing the
same executable. Use the second program to restore the program name to
that of its origional.
I might have a few other ideas; let me know.
Olav Kappert
IOMIT International
HP3000 Application Development Specialist.
http://IOMIT.UnitedStates.com
Reggie Monroe wrote:
>Is there a way to restrict the number of users that can access a specific program. For example I would like to have only one person at a time running the Orbit software in order to prevent multiple people performing online backups. Thank you.
>
>
>
>[cid:image002.jpg@01C9F3F2.DBCDE9B0]
>
>Reginald C. Monroe Jr | Sr. Systems Administrator | Mercury Insurance
>555 W. Imperial Hwy. Brea, CA 92821
>(714) 671-6753 Direct (714) 671-6541 Fax
>www.mercuryinsurance.com<http://www.mercuryinsurance.com>
>
>
>
>
>This email and/or any files or attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail and/or any files or attachments transmitted with it is strictly forbidden. If you have received this email in error, please delete the e-mail and/or any files or attachments, and also notify the system manager ([log in to unmask]) of the error. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email and/or any files or attachments transmitted with it.
>
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|