Hi Ned,

please see the attached bugreport.

regards

        Stefan

-------- Original Message --------
Subject: Bug#438335: dtach -n error - tcgetattr: Inappropriate ioctl for
device
Resent-Date: Thu, 16 Aug 2007 11:00:02 +0000,   Thu, 16 Aug 2007 11:00:03
+0000
Resent-From: Bernard Boudet <[EMAIL PROTECTED]>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-CC: Stefan Voelkel <[EMAIL PROTECTED]>
Date: Thu, 16 Aug 2007 11:58:43 +0100
From: Bernard Boudet <[EMAIL PROTECTED]>
Reply-To: Bernard Boudet <[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
To: Debian Bug Tracking System <[EMAIL PROTECTED]>

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

-- 
------------------------------------------------------------------------
Stefan Völkel
IT-Consultant

Millenux GmbH                      Tel. +49 89  608665-26
Lilienthalstraße 2/1               Tel. +49 711 88770-300
70825 Korntal/Stuttgart            Fax  +49 711 88770-349
http://www.millenux.com            [EMAIL PROTECTED]

Geschäftsführer: Markus Klingspor, Thomas Uhl
Sitz und Amtsgericht Stuttgart, HRB 21058
------------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to