FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-31-2008, 06:56 PM
Smoot Carl-Mitchell
 
Default bsdutils: /usr/bin/script doesn't wait for command to finish before exiting

On Mon, 2008-07-28 at 18:58 -0400, Fergus Henderson wrote:
> Package: bsdutils
> Version: 1:2.12r-4ubuntu6.1
> Severity: normal
> Tags: patch
>
>
> The script command fails to wait for the command that it is executing to finish.
> For example, the command
>
> /usr/bin/script -c "sleep 1; echo foo" < /dev/null; echo bar
>
> produces the output
>
> Script started, file is typescript
> Script done, file is typescript
> bar
> foo

It is the I/O redirection from /dev/null which is the culprit. Without
it the commands run in sequence correctly. With the /dev/null redirect,
it appears the subshell forked by 'script' runs in the background from
the parent shell.
--
Smoot Carl-Mitchell
System/Network Architect
smoot@tic.com
+1 480 922 7313
cell: +1 602 421 9005

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Thu Jul 31 22:30:01 2008
Return-path: <bounce-debian-user=tom=linux-archive.org@lists.debian.org>
Envelope-to: tom@linux-archive.org
Delivery-date: Thu, 31 Jul 2008 21:58:09 +0300
Received: from liszt.debian.org ([82.195.75.100])
by s2.java-tips.org with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.69)
(envelope-from <bounce-debian-user=tom=linux-archive.org@lists.debian.org>)
id 1KOdLl-0000Wf-Ai
for tom@linux-archive.org; Thu, 31 Jul 2008 21:58:09 +0300
Received: from localhost (localhost [127.0.0.1])
by liszt.debian.org (Postfix) with QMQP
id 72C9213A52EE; Thu, 31 Jul 2008 18:57:54 +0000 (UTC)
Old-Return-Path: <mdonada@auroraalimentos.com.br>
X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on liszt.debian.org
X-Spam-Level:
X-Spam-Status: No, score=-9.0 required=4.0 tests=LDOSUBSCRIBER,LDO_WHITELIST,
MURPHY_DRUGS_REL8,PUSSY autolearn=failed version=3.2.3
X-Original-To: lists-debian-user@liszt.debian.org
Delivered-To: lists-debian-user@liszt.debian.org
Received: from localhost (localhost [127.0.0.1])
by liszt.debian.org (Postfix) with ESMTP id 20C3B13A526F
for <lists-debian-user@liszt.debian.org>; Thu, 31 Jul 2008 18:57:48 +0000 (UTC)
Received: from liszt.debian.org ([127.0.0.1])
by localhost (lists.debian.org [127.0.0.1]) (amavisd-new, port 2525)
with ESMTP id 19103-54 for <lists-debian-user@liszt.debian.org>;
Thu, 31 Jul 2008 18:57:45 +0000 (UTC)
X-policyd-weight: DYN_NJABL=ERR NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1 <client=200.228.43.6> <helo=mx.auroraalimentos.com.br> <from=mdonada@auroraalimentos.com.br> <to=debian-user@lists.debian.org>, rate: -6.1
Received: from mx.auroraalimentos.com.br (mx.auroraalimentos.com.br [200.228.43.6])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client did not present a certificate)
by liszt.debian.org (Postfix) with ESMTP id 09B6013A5231
for <debian-user@lists.debian.org>; Thu, 31 Jul 2008 18:57:38 +0000 (UTC)
Received: from localhost (localhost.localdomain [127.0.0.1])
by mx.auroraalimentos.com.br (Postfix) with ESMTP id 539993407D
for <debian-user@lists.debian.org>; Thu, 31 Jul 2008 15:48:05 -0300 (BRT)
Received: from mx.auroraalimentos.com.br ([127.0.0.1])
by localhost (mx.auroraalimentos.com.br [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 8xkOGNaSFJSj for <debian-user@lists.debian.org>;
Thu, 31 Jul 2008 15:48:05 -0300 (BRT)
Received: from [127.0.0.1] (unknown [121.1.16.22])
by mx.auroraalimentos.com.br (Postfix) with ESMTP id EEF0D34091
for <debian-user@lists.debian.org>; Thu, 31 Jul 2008 15:48:04 -0300 (BRT)
Message-ID: <48920A30.1060101@auroraalimentos.com.br>
Date: Thu, 31 Jul 2008 15:53:36 -0300
From: =?ISO-8859-1?Q?M=E1rcio_Luciano_Donada?=
<mdonada@auroraalimentos.com.br>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
To: debian-user@lists.debian.org
Subject: Re: [OFF] Monitor skype chat
References: <47FCCCAB.4000603@auroraalimentos.com.br> <7a2ce3870804090722r137178a8wc17e2e9684dc913@mail. gmail.com> <20080409143318.GA32555@finrod>
In-Reply-To: <20080409143318.GA32555@finrod>
Content-Type: text/plain; charset=ISO-8859-1
X-Antivirus: avast! (VPS 080731-0, 31/07/2008), Outbound message
X-Antivirus-Status: Clean
X-Virus-Scanned: at lists.debian.org with policy bank en-ht
X-Amavis-Spam-Status: No, score=-2.98 tagged_above=3.6 required=5.3
tests=[LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PUSSY=2]
X-Rc-Virus: 2007-09-13_01
X-Rc-Spam: 2007-10-04_01
Resent-Message-ID: <wXpTInM6snF.A._1E.ysgkIB@liszt>
Resent-From: debian-user@lists.debian.org
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/526201
X-Loop: debian-user@lists.debian.org
List-Id: <debian-user.lists.debian.org>
List-Post: <mailto:debian-user@lists.debian.org>
List-Help: <mailto:debian-user-request@lists.debian.org?subject=help>
List-Subscribe: <mailto:debian-user-request@lists.debian.org?subject=subscribe>
List-Unsubscribe: <mailto:debian-user-request@lists.debian.org?subject=unsubscribe>
Precedence: list
Resent-Sender: debian-user-request@lists.debian.org
Resent-Date: Thu, 31 Jul 2008 18:57:54 +0000 (UTC)
Content-Transfer-Encoding: quoted-printable

Martin Kraus escreveu:
> On Wed, Apr 09, 2008 at 11:22:28AM -0300, Andre Luiz Rodrigues Ferreira=
wrote:
>> The skype connection is encrypted, can not be monitored.
>=20
> that might even be true.
>=20
> mk
>=20
>=20

Hi, list
Right, and how to proceed to block skype. I am using kernel 2.6.19.7
with patch for the layer7, iptables and everything else, and I am not
getting a definitive solution to complete the blockade of skype. Do you
have any solution for this?


--=20
M=E1rcio Luciano Donada <mdonada at auroraalimentos dot com dot br>
Aurora Alimentos - Cooperativa Central Oeste Catarinense
Departamento de T.I.


--=20
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org=20
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian=
.org
 
Old 08-29-2008, 05:13 AM
"Fergus Henderson"
 
Default bsdutils: /usr/bin/script doesn't wait for command to finish before exiting

On Thu Jul 31 19:56:18 BST 2008, Smoot Carl-Mitchell wrote:
On Mon, 2008-07-28 at 18:58 -0400, Fergus Henderson wrote:

> Package: bsdutils
> Version: 1:2.12r-4ubuntu6.1
> Severity: normal
> Tags: patch
>
>
> The script command fails to wait for the command that it is executing to finish.

> For example, the command
>
> /usr/bin/script -c "sleep 1; echo foo" < /dev/null; echo bar
>
> produces the output
>
> Script started, file is typescript

> Script done, file is typescript
> bar
> foo

It is the I/O redirection from /dev/null which is the culprit. Without
it the commands run in sequence correctly. With the /dev/null redirect,

it appears the subshell forked by 'script' runs in the background from
the parent shell.The _culprit_ is the buggy code in script.c, for which I provided a patch
(see my original email at <https://lists.ubuntu.com/archives/ubuntu-users/2008-July/154664.html>).


You're right that the bug only shows up if stdin is redirected, but that does not mean that the I/O redirection is the "culprit", just that the I/O redirection happens to trigger the bug.

Now, if only someone would actually apply my patch!* The bsdutils package that contains /usr/bin/script appears to be effectively ownerless.* I have no idea who to send the patch to.

--
Fergus Henderson <fergus@google.com>


--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 08-31-2008, 08:05 AM
Nils Kassube
 
Default bsdutils: /usr/bin/script doesn't wait for command to finish before exiting

Fergus Henderson wrote:
> > The _culprit_ is the buggy code in script.c, for which I provided a
> > patch
>
> (see my original email at <
> https://lists.ubuntu.com/archives/ubuntu-users/2008-July/154664.html>).
>
> Now, if only someone would actually apply my patch! The bsdutils
> package that contains /usr/bin/script appears to be effectively
> ownerless. I have no idea who to send the patch to.

If you send the bug report / patch to this list it is usually lost. Please
file a bug at <https://bugs.launchpad.net/> and include your patch.


Nils

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 10:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org