[3702] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

Re: [barnowl] barnowl-screen (#101)

daemon@ATHENA.MIT.EDU (Jason Gross)
Tue Jan 7 19:34:39 2014

Date: Tue, 07 Jan 2014 16:34:34 -0800
From: Jason Gross <notifications@github.com>
Reply-To: barnowl/barnowl <reply+p-8712452-75a9668c3342d014a6fcc51c0eac77146b174a78-4475081@reply.github.com>
To: barnowl/barnowl <barnowl@noreply.github.com>
In-Reply-To: <barnowl/barnowl/pull/101@github.com>


----==_mimepart_52cc9d1a85074_59f9e27d0469119
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

> +
> +    my $output = "";
> +
> +    $hdlin->push_write($password .  "\n");
> +    $hdlerr->push_read (line => sub {
> +        my ($hdl, $line) = @_;
> +        $output .= $line;
> +                     });
> +    close $stdout;
> +    $w = AnyEvent->child (pid => $pid, cb => sub {
> +        my ($pid, $status) = @_;
> +        if ($status != 0){
> +            BarnOwl::error($output);
> +        }
> +        else{
> +            if(BarnOwl::getvar("aklog") == 'on'){

`eq` is for stings, `==` is for numbers

---
Reply to this email directly or view it on GitHub:
https://github.com/barnowl/barnowl/pull/101/files#r8712452
----==_mimepart_52cc9d1a85074_59f9e27d0469119
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<p>In perl/modules/Kerberos/lib/BarnOwl/Module/Kerberos.pm:</p>
<pre style='color:#555'>&gt; +
&gt; +    my $output = &quot;&quot;;
&gt; +
&gt; +    $hdlin-&gt;push_write($password .  &quot;\n&quot;);
&gt; +    $hdlerr-&gt;push_read (line =&gt; sub {
&gt; +        my ($hdl, $line) = @_;
&gt; +        $output .= $line;
&gt; +                     });
&gt; +    close $stdout;
&gt; +    $w = AnyEvent-&gt;child (pid =&gt; $pid, cb =&gt; sub {
&gt; +        my ($pid, $status) = @_;
&gt; +        if ($status != 0){
&gt; +            BarnOwl::error($output);
&gt; +        }
&gt; +        else{
&gt; +            if(BarnOwl::getvar(&quot;aklog&quot;) == &#39;on&#39;){
</pre>
<p><code>eq</code> is for stings, <code>==</code> is for numbers</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href='https://github.com/barnowl/barnowl/pull/101/files#r8712452'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/4475081__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwNDY3NDA3NCwiZGF0YSI6eyJpZCI6NDEzODA0Nn19--1436e7fc2c9366d6ee3e7e8ff0e353b8ccf336ef.gif' height='1' width='1'></p>
----==_mimepart_52cc9d1a85074_59f9e27d0469119--

home help back first fref pref prev next nref lref last post