Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion 'tee' doesn't work with mongo shell

Received: by 10.224.205.65 with SMTP id fp1mr3665846qab.4.1353094436058;
        Fri, 16 Nov 2012 11:33:56 -0800 (PST)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.49.132.102 with SMTP id ot6ls1075291qeb.51.gmail; Fri, 16 Nov
 2012 11:33:44 -0800 (PST)
Received: by 10.224.180.141 with SMTP id bu13mr3670954qab.2.1353094424474;
        Fri, 16 Nov 2012 11:33:44 -0800 (PST)
Received: by 10.224.180.141 with SMTP id bu13mr3670951qab.2.1353094424454;
        Fri, 16 Nov 2012 11:33:44 -0800 (PST)
Return-Path: <puentesar...@gmail.com>
Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177])
        by gmr-mx.google.com with ESMTPS id y1si709853qco.0.2012.11.16.11.33.44
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 16 Nov 2012 11:33:44 -0800 (PST)
Received-SPF: pass (google.com: domain of puentesar...@gmail.com designates 209.85.216.177 as permitted sender) client-ip=209.85.216.177;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of puentesar...@gmail.com designates 209.85.216.177 as permitted sender) smtp.mail=puentesar...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-qc0-f177.google.com with SMTP id u28so2300763qcs.8
        for <mongodb-user@googlegroups.com>; Fri, 16 Nov 2012 11:33:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type;
        bh=917fVh0lhpXZpMR6SGzCsan5gx7DcvcX7hhAnnaCKV8=;
        b=ATdLz48cXaT/liXkd2AsWhQLXdProwWAlxmL/LCEsWhk6aNLNHB/DUifEi78f06EWR
         LzTtBZUdOiSioDAAj5ZiKsYZCim2/S5QbBya+gr9GbNz6IJPPSQA/vwGtZK3Jn23q5xd
         q1sD3caAJeiQe0M3uJewv9ALRdH2pwT0UZolHWXxmTqPQy/L8ITfz/EIzyYh0UcqaV0T
         pJZwd2hDYGcUk6lqagPReiwiHr7BG8v8H4j5J80jzcmwbk64qVK2kiOhEownCou0FnSm
         Dw4BQ5Y/tFu85PJhS++sAMz0NWPxWH5w+Klw1cwR7+4D17xVpNqjkevU30xWkHAe6nVU
         CqpQ==
Received: by 10.224.187.198 with SMTP id cx6mr5386208qab.56.1353094424319;
 Fri, 16 Nov 2012 11:33:44 -0800 (PST)
MIME-Version: 1.0
Received: by 10.49.49.105 with HTTP; Fri, 16 Nov 2012 11:33:04 -0800 (PST)
In-Reply-To: <ae738658-8ad8-4c8d-b8d3-e4e4c1fdf04d@googlegroups.com>
References: <CAO+R_P__Nnues21AWRMz6dvYUcrFamR42+Wq7s64P5fXqPD...@mail.gmail.com>
 <ae738658-8ad8-4c8d-b8d3-e4e4c1fdf04d@googlegroups.com>
From: =?ISO-8859-1?Q?Jorge_Puente_Sarr=EDn?= <puentesar...@gmail.com>
Date: Fri, 16 Nov 2012 14:33:04 -0500
Message-ID: <CAO+R_P_XO9Vet7DQ-6i0Q9+s+yHbvDttT_-S21epA5rP-Hg...@mail.gmail.com>
Subject: Re: [mongodb-user] Re: 'tee' doesn't work with mongo shell
To: mongodb-user@googlegroups.com
Content-Type: multipart/alternative; boundary=485b397dd49182571a04cea1d8ca

--485b397dd49182571a04cea1d8ca
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I see, the issue refers when copy and paste any text with special
characteres on mongo shell, then this crashes.

*tee* is used for IO logging only in this case.

Thanks a lot.


2012/11/16 Ronald Stalder <ronals...@gmail.com>

> This is a copy/paste form my console (highlighting manually here in the
> textbox):
>
> ronald@ronald-cce:~/curso-m101/hw3$ *script --version*
> *script de util-linux 2.20.1*
> ronald@ronald-cce:~/curso-m101/hw3$ *script test.log*
> Script iniciado, o arquivo =E9 test.log
> ronald@ronald-cce:~/curso-m101/hw3$* mongo test*
> *MongoDB shell version: 2.2.1*
> connecting to: test
> > *show collections*
> fruit
> posts
> system.indexes
> test
> videos.chunks
> videos.files
> videos_meta
> > *db.posts.findOne()*
> {
> "_id" : ObjectId("509df08f27f819ffd9d9ef2d"),
>  "author" : "Jane",
> "content" : "bla bla",
>  "comments" : [
> {
>  "author" : "John",
> "text" : "bloblo"
>  },
> {
> "author" : "Jim",
>  "text" : "blublu"
> }
>  ],
> "tags" : [
>  "bla",
> "blo",
>  "blu"
> ]
> }
> >
> bye
> ronald@ronald-cce:~/curso-m101/hw3$ *exit*
> *Script conclu=EDdo, o arquivo =E9 test.log*
> ronald@ronald-cce:~/curso-m101/hw3$ *cat test.log*
> Script iniciado em Sex 16 Nov 2012 16:19:04 BRT
> ronald@ronald-cce:~/curso-m101/hw3$ mongo test
> MongoDB shell version: 2.2.1
> connecting to: test
> > show collections
> fruit
> posts
> system.indexes
> test
> videos.chunks
> videos.files
> videos_meta
> > db.posts.findOne()
> {
> "_id" : ObjectId("509df08f27f819ffd9d9ef2d"),
>  "author" : "Jane",
> "content" : "bla bla",
>  "comments" : [
> {
>  "author" : "John",
> "text" : "bloblo"
>  },
> {
> "author" : "Jim",
>  "text" : "blublu"
> }
>  ],
> "tags" : [
>  "bla",
> "blo",
>  "blu"
> ]
> }
> >
> bye
> ronald@ronald-cce:~/curso-m101/hw3$ exit
>
> Script conclu=EDdo em Sex 16 Nov 2012 16:20:01 BRT
> ronald@ronald-cce:~/curso-m101/hw3$
>
>
> It didn't crash and the output is nice because I didn't use any
> backspace.... Do you have a different version of script or mongo shell ?
>
>  --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb
>



--=20
Jorge Puente Sarr=EDn.

--485b397dd49182571a04cea1d8ca
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I see, the issue refers when copy and paste any text with special character=
es on mongo shell, then this crashes.<br><br><b>tee</b> is used for IO logg=
ing only in this case.<br><br>Thanks a lot.<br><div class=3D"gmail_extra">

<br><br><div class=3D"gmail_quote">2012/11/16 Ronald Stalder <span dir=3D"l=
tr">&lt;<a href=3D"mailto:ronals...@gmail.com" target=3D"_blank">ronalstal@=
gmail.com</a>&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

This is a copy/paste form my console (highlighting manually here in the tex=
tbox):<div><br></div><div><div><font face=3D"courier new, monospace">ronald=
@ronald-cce:~/curso-m101/hw3$ <b>script --version</b></font></div><div><fon=
t face=3D"courier new, monospace"><b><i>script de util-linux 2.20.1</i></b>=
</font></div>

<div><font face=3D"courier new, monospace">ronald@ronald-cce:~/curso-m101/h=
w3$ <b>script test.log</b></font></div><div><font face=3D"courier new, mono=
space">Script iniciado, o arquivo =E9 test.log</font></div><div><font face=
=3D"courier new, monospace">ronald@ronald-cce:~/curso-m101/hw3$<b> mongo te=
st</b></font></div>

<div><font face=3D"courier new, monospace"><b><i>MongoDB shell version: 2.2=
.1</i></b></font></div><div><font face=3D"courier new, monospace">connectin=
g to: test</font></div><div><font face=3D"courier new, monospace">&gt; <b>s=
how collections</b></font></div>

<div><font face=3D"courier new, monospace">fruit</font></div><div><font fac=
e=3D"courier new, monospace">posts</font></div><div><font face=3D"courier n=
ew, monospace">system.indexes</font></div><div><font face=3D"courier new, m=
onospace">test</font></div>

<div><font face=3D"courier new, monospace">videos.chunks</font></div><div><=
font face=3D"courier new, monospace">videos.files</font></div><div><font fa=
ce=3D"courier new, monospace">videos_meta</font></div><div><font face=3D"co=
urier new, monospace">&gt; <b>db.posts.findOne()</b></font></div>

<div><font face=3D"courier new, monospace">{</font></div><div><font face=3D=
"courier new, monospace"><span style=3D"white-space:pre-wrap">	</span>&quot=
;_id&quot; : ObjectId(&quot;509df08f27f819ffd9d9ef2d&quot;),</font></div><d=
iv>

<font face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">=
	</span>&quot;author&quot; : &quot;Jane&quot;,</font></div><div><font face=
=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">	</span>&q=
uot;content&quot; : &quot;bla bla&quot;,</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">	</span>&quot;comments&quot; : [</font></div><div><font face=3D"courie=
r new, monospace"><span style=3D"white-space:pre-wrap">		</span>{</font></d=
iv>
<div>
<font face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">=
			</span>&quot;author&quot; : &quot;John&quot;,</font></div><div><font fac=
e=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">			</span=
>&quot;text&quot; : &quot;bloblo&quot;</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">		</span>},</font></div><div><font face=3D"courier new, monospace"><sp=
an style=3D"white-space:pre-wrap">		</span>{</font></div><div><font face=3D=
"courier new, monospace"><span style=3D"white-space:pre-wrap">			</span>&qu=
ot;author&quot; : &quot;Jim&quot;,</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">			</span>&quot;text&quot; : &quot;blublu&quot;</font></div><div><font=
 face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">		</s=
pan>}</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">	</span>],</font></div><div><font face=3D"courier new, monospace"><spa=
n style=3D"white-space:pre-wrap">	</span>&quot;tags&quot; : [</font></div><=
div>

<font face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">=
		</span>&quot;bla&quot;,</font></div><div><font face=3D"courier new, monos=
pace"><span style=3D"white-space:pre-wrap">		</span>&quot;blo&quot;,</font>=
</div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">		</span>&quot;blu&quot;</font></div><div><font face=3D"courier new, m=
onospace"><span style=3D"white-space:pre-wrap">	</span>]</font></div><div><=
font face=3D"courier new, monospace">}</font></div>

<div><font face=3D"courier new, monospace">&gt;=A0</font></div><div><font f=
ace=3D"courier new, monospace">bye</font></div><div><font face=3D"courier n=
ew, monospace">ronald@ronald-cce:~/curso-m101/hw3$ <b>exit</b></font></div>=
<div>

<font face=3D"courier new, monospace"><b><i>Script conclu=EDdo, o arquivo =
=E9 test.log</i></b></font></div><div><font face=3D"courier new, monospace"=
>ronald@ronald-cce:~/curso-m101/hw3$ <b>cat test.log</b></font></div><div><=
font face=3D"courier new, monospace">Script iniciado em Sex 16 Nov 2012 16:=
19:04 BRT</font></div>

<div><font face=3D"courier new, monospace">ronald@ronald-cce:~/curso-m101/h=
w3$ mongo test</font></div><div><font face=3D"courier new, monospace">Mongo=
DB shell version: 2.2.1</font></div><div><font face=3D"courier new, monospa=
ce">connecting to: test</font></div>

<div><font face=3D"courier new, monospace">&gt; show collections</font></di=
v><div><font face=3D"courier new, monospace">fruit</font></div><div><font f=
ace=3D"courier new, monospace">posts</font></div><div><font face=3D"courier=
 new, monospace">system.indexes</font></div>

<div><font face=3D"courier new, monospace">test</font></div><div><font face=
=3D"courier new, monospace">videos.chunks</font></div><div><font face=3D"co=
urier new, monospace">videos.files</font></div><div><font face=3D"courier n=
ew, monospace">videos_meta</font></div>

<div><font face=3D"courier new, monospace">&gt; db.posts.findOne()</font></=
div><div><font face=3D"courier new, monospace">{</font></div><div><font fac=
e=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">	</span>&=
quot;_id&quot; : ObjectId(&quot;509df08f27f819ffd9d9ef2d&quot;),</font></di=
v>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">	</span>&quot;author&quot; : &quot;Jane&quot;,</font></div><div><font =
face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">	</spa=
n>&quot;content&quot; : &quot;bla bla&quot;,</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">	</span>&quot;comments&quot; : [</font></div><div><font face=3D"courie=
r new, monospace"><span style=3D"white-space:pre-wrap">		</span>{</font></d=
iv>
<div>
<font face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">=
			</span>&quot;author&quot; : &quot;John&quot;,</font></div><div><font fac=
e=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">			</span=
>&quot;text&quot; : &quot;bloblo&quot;</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">		</span>},</font></div><div><font face=3D"courier new, monospace"><sp=
an style=3D"white-space:pre-wrap">		</span>{</font></div><div><font face=3D=
"courier new, monospace"><span style=3D"white-space:pre-wrap">			</span>&qu=
ot;author&quot; : &quot;Jim&quot;,</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">			</span>&quot;text&quot; : &quot;blublu&quot;</font></div><div><font=
 face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">		</s=
pan>}</font></div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">	</span>],</font></div><div><font face=3D"courier new, monospace"><spa=
n style=3D"white-space:pre-wrap">	</span>&quot;tags&quot; : [</font></div><=
div>

<font face=3D"courier new, monospace"><span style=3D"white-space:pre-wrap">=
		</span>&quot;bla&quot;,</font></div><div><font face=3D"courier new, monos=
pace"><span style=3D"white-space:pre-wrap">		</span>&quot;blo&quot;,</font>=
</div>

<div><font face=3D"courier new, monospace"><span style=3D"white-space:pre-w=
rap">		</span>&quot;blu&quot;</font></div><div><font face=3D"courier new, m=
onospace"><span style=3D"white-space:pre-wrap">	</span>]</font></div><div><=
font face=3D"courier new, monospace">}</font></div>

<div><font face=3D"courier new, monospace">&gt;=A0</font></div><div><font f=
ace=3D"courier new, monospace">bye</font></div><div><font face=3D"courier n=
ew, monospace">ronald@ronald-cce:~/curso-m101/hw3$ exit</font></div><div><f=
ont face=3D"courier new, monospace"><br>

</font></div><div><font face=3D"courier new, monospace">Script conclu=EDdo =
em Sex 16 Nov 2012 16:20:01 BRT</font></div><div><font face=3D"courier new,=
 monospace">ronald@ronald-cce:~/curso-m101/hw3$=A0</font></div></div><div><=
br>
</div>
<div><br></div><div>It didn&#39;t crash and the output is nice because I di=
dn&#39;t use any backspace.... Do you have a different version of script or=
 mongo shell ?<br><br></div><div class=3D"HOEnZb"><div class=3D"h5">

<p></p>

-- <br>
You received this message because you are subscribed to the Google<br>
Groups &quot;mongodb-user&quot; group.<br>
To post to this group, send email to <a href=3D"mailto:mongodb-user@googleg=
roups.com" target=3D"_blank">mongodb-user@googlegroups.com</a><br>
To unsubscribe from this group, send email to<br>
<a href=3D"mailto:mongodb-user%2Bunsubscribe@googlegroups.com" target=3D"_b=
lank">mongodb-user+unsubscribe@googlegroups.com</a><br>
See also the IRC channel -- <a href=3D"http://freenode.net#mongodb" target=
=3D"_blank">freenode.net#mongodb</a><br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Jorge Puent=
e Sarr=EDn.<br>
</div>

--485b397dd49182571a04cea1d8ca--