Free 14-Day Evaluations    
Product Downloads    

Sign in     


DESKTOP MOBILE DOWNLOAD PURCHASE SUPPORT INFO COMPANY
 Home  >>  Support  >>  Knowledge Base

Locked Device

Using TERM for UNIX, you may see a locked device error when connecting to a tty port. The port permissions are usually reset to 600 (-rw——-) when this happens, even if you’ve changed it to 666 (-rw-rw-rw-).

The following is a sample script. It will not execute on all UNIX systems. You will need to adjust it for your particular flavor of UNIX. It will resolve the inability of callin and callout being unable to enable and disable ports that use port monitors.

  1. Place the script in /usr/bin.
  2. Do a chmod 777 to make it executable and accessible to all users.

The script is very simple. It disables the port, makes it accessible to TERM, starts TERM, then re-enables the port after TERM exits.

/usr/sbin/pmadm -d -pttymon0 -s00
sleep5
chmod 0666/dev/term/00
term
/usr/sbin/pmadm -e -pttymon0 -s00

Please note: This script is from Unisys U6000 SVR4 UNIX. Other flavors of UNIX will have commands that do the same thing, but the syntax will be different.

CR 572

Comments are closed.

  Copyright © 2024 Century Software, Inc. All Rights Reserved999 TERMS OF USE PRIVACY POLICY EULA