Package: dtach
Version: 0.7-1
Severity: normal

It seems dtach -n attempts to determine the current terminal settings.

I think -n option should be able to fake the terminal settings.  It is
arguable that the current terminal is not relevant for the -n option.

To demonstrate the problem:

~$ dtach -n ~/.dtach/shell bash < /dev/null
dtach: tcgetattr: Inappropriate ioctl for device

A more real world example:

~$ crontab -l | grep dtach
@reboot dtach -n ~/.dtach/irssi irssi 2>&1 > ~/.dtach/irssi.cron
~$ cat ~/.dtach/irssi.cron
dtach: tcgetattr: Invalid argument

The above example shows where a user has set in their crontab a line
to run after boot to create an irssi instance.  Unfortunately this
does not work due to the same error.

I've been using dtach in preference to screen for a while now, and
this is the first real problem I have... Any ideas for a workaround
please?

Cheers,
-bernie.


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-3-586tsc
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages dtach depends on:
ii  libc6                 2.3.2.ds1-22sarge6 GNU C Library: Shared libraries an

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to