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.
- Place the script in /usr/bin.
- 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
This entry was posted
on Thursday, April 5th, 2007 at 2:05 pm and is filed under Serial (RS232), TERM.
You can follow any responses to this entry through the RSS 2.0 feed.
Both comments and pings are currently closed.