Previous Topic: put_desc (Application Control and Management)--Modify Application Package DescriptorNext Topic: unlock (Application Control and Management)--Unlock Application


lock (Application Control and Management)--Lock Application

lock an application

Syntax
application lock app [ pwd=-] 
Arguments
app

name of application to be locked pwd=- Prompt for the password used to unlock the application. If the standard input is not a terminal device, it will not print a prompt and expect only one copy of the password on 'stdin' (this can be used for batch operations, to set the password from a file).

Examples

application lock my-app

Lock application my-app

application lock my-app pwd=-

Lock application my-app and prompt for password

Note: A password is required for a non-maintainer to lock an application.

If the pwd argument is specified, it is required to unlock the application.

When an application is locked, no volumes belonging to the application may be managed and the application may not be modified in any way

See Application and Class Locking Reference for more information.