Operating System - HP-UX
1835578 Members
2457 Online
110079 Solutions
New Discussion

emux_stty command to manually close port

 
Bill Zuliani
Occasional Contributor

emux_stty command to manually close port

I am looking for the "stty" command(s) to manually close the DB25 port on the MUX of an HP9000 L class server. The device connected to this port is a printer. Tried to lookup the info in Troubleshooting and Diagnostics manual for the EISA/PCI Multiplexer, but only shows commands to keep the port forced open. Thanks for any help that anyone can provide.
1 REPLY 1
Frank Slootweg
Honored Contributor

Re: emux_stty command to manually close port

It may sound a little bit silly, but a tty is closed when no process has opened it.

So if you want to 'close' a tty, you have to check if there are any processes which have opened it and terminate those processes. You can do the former with fuser(1M) and the latter with kill(1), but first start with a soft-kill like -HUP, -TERM, etc..