Skip navigation.
The QNX Community Portal

View topic - No controlling tty (open /dev/tty:No such device or adrress)

No controlling tty (open /dev/tty:No such device or adrress)

Discussion about the QNX6 OS.

No controlling tty (open /dev/tty:No such device or adrress)

Postby igorvorobey » Wed Jul 20, 2016 6:08 am

Good Afternoon!

I need Your help with next trouble - when I start the system(I have made my own bootable image OS) I receive next message:
sh: No controlling tty (open /dev/tty: No such device or adrress)
sh: warning: won't have full job control

After that, when I type the command, it itypes incorrect,for example:
sh: dsl:cannot execute - No such file or directory

Do you know how to fix this problem? Thanks.
New Member
Posts: 3
Joined: Mon Jul 04, 2016 5:09 am

Re: No controlling tty (open /dev/tty:No such device or adrr

Postby Tim » Wed Jul 20, 2016 1:53 pm

There may be more than one problem here.

'no controlling tty' means you have no terminal. So if your shell exits it can't be restarted. Normally you start 'tinit' during bootup which starts a shells each time a user logs in (note that tinit would need to be in your bootimage or harddrive/cf card) . ... tinit.html

'sh: ls:cannot execute' says you don't have the 'ls' command. Does your bootable image contain the 'ls' command (or is the ls command installed on a harddrive/CF card)?

Senior Member
Posts: 1401
Joined: Wed Mar 10, 2004 12:28 am

Re: No controlling tty (open /dev/tty:No such device or adrr

Postby denkelly » Wed Jul 20, 2016 2:38 pm

You are probably missing this line, or similar.

[type=link] /dev/console = /dev/ser1

assuming the script calls
[+session] ksh &

Another issue that will arise is the need for this directory to be populated (at least for the terminal types you want to support, normaly "ansi" and "vt100"). Otherwise, "TERM=" lines mean nothing and you can't run programs like fdisk and vi.

>>>>> /usr/lib/terminfo
Senior Member
Posts: 161
Joined: Sat Aug 02, 2008 3:27 pm

Return to QNX6 - OS

Who is online

Users browsing this forum: No registered users and 4 guests