1 1976-08-19  lock_console, lkc
 2 
 3 Syntax as a command: lkc {-control_args}
 4 
 5 
 6 Function: lock_console can be used to protect your process from
 7 unauthorized use in the event you have to leave your terminal for
 8 any length of time.  This command should be used on a public
 9 terminal only when you will be away for a short period, as a
10 courtesy to other users.  In its default mode, the command
11 prompts you for a password before locking the console.  Any word
12 up to 8 characters is acceptable.  When ready to resume use of the
13 console, hit the BREAK key and type the password in response to
14 the prompt.
15 
16 
17 Control arguments:
18 -time T, -tm T
19    Set basic lock time to T minutes instead of the default
20    time of 10 minutes.
21 -no_logout, -nol
22    Do not logout at the expiration of the basic lock time
23    and grace period; return to caller instead.
24 -prev_pw, -ppw
25    Use the password from the previous invocation.
26 -defer_messages, -dm
27    Execute the command "defer_messages" before executing any
28    command line.
29 
30 
31 -set_pw P, -spw P
32    Sets the password to P (8 chars or less).
33 -call C, -cl C
34    Pass command line C to command processor.
35 -grace n, -gr n
36    Sets the grace period to n minutes.
37 -no_catch_signals, -ncs
38    Do not establish a default condition handler.
39 -brief, -bf
40    Do not print any lock_console messages.
41 -no_print_off, -npf
42    Print a mask for the password.
43 
44 
45 Notes:
46 If both the -spw and -ppw arguments are used in the same
47 invocation, the -ppw argument will have no effect.  The -set_pw
48 argument will be ignored (with comment) on the initial invocation
49 in a process.
50 
51 
52 Example: lock_console -tm 25 -no_logout -grace 2 -cl "ls -p <" -bf