From: Amit Dor-Shifer <amitds@oversi.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: [OT] shell ouput which file descriptor
Date: Sun, 11 Apr 2010 09:40:55 +0300 [thread overview]
Message-ID: <4BC16EF7.9030608@oversi.com> (raw)
In-Reply-To: <87tyrjz3hd.fsf@newsguy.com>
permission issue?
any EACCES in strace output?
Amit
Harry Putnam wrote:
> Harry Putnam <reader@newsguy.com> writes:
>
>
>>> $cat /tmp/testfile
>>> cat: nonexistantfile: No such file or directory
>>>
>> Thanks...
>>
>>
>>> Are you running cvs as root, or user, or ...?
>>>
>> I was running cvs as user, and now trying your tests... it appears the
>> trouble has stopped... doesn't occur now in cvs cmds either.
>>
>> There was a reboot in between, so may never now what was going on.
>>
>> Prior to rebooting I had tried to get a fresh env by ssh
>> user@localhost from an xterm. Hoping to rule out some oddball env
>> problem, but the file descriptor problem persisted. However it has
>> apparently not survived a reboot.
>>
>
> Yikes... more mysterious than I reported above.
>
> I see now that I get the goofy acting file descriptors when I'm in
> console mode, but not in X.
>
> And it appears only to happen in cvs commands, but again, not in X.
>
> My sequence:
>
> Reboot just now.
>
> At console login:
>
> login and call cvs command:
>
> cvs -n update /usr/local/common/base 2>er
>
> I see 83 lines scroll by.
>
> cat er
> cat: er: No such file or directory
>
> Nothing has been redirected.
>
> cvs -n update /usr/local/common/base 2>er|wc -l
>
> I still see 83 lines but wc -l reports 0
> (as it should)
>
> So somehow the redirect is ignored and stderr goes to console
> anyway.
>
> Trying your test
> cat none 2>er
>
> cat er
> cat: none: No such file or directory
>
> So stderr is doing what it is supposed to do with cat but not a cvs
> command.
> ------- --------- ---=--- --------- --------
> Now startx and from an xterm:
> cvs -n update /usr/local/common/base 2>er
> <no output> just like expected
>
> Follow with:
> cat er|wc -l
> 83
> (83 lines of ouput were captured with 2>er)
>
> So this is more puzzling than ever. Weird phenomena in console that
> stops when in X.
>
>
>
>
prev parent reply other threads:[~2010-04-11 6:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 15:19 [gentoo-user] [OT] shell ouput which file descriptor Harry Putnam
2010-04-09 21:59 ` [gentoo-user] " walt
2010-04-10 15:11 ` Harry Putnam
2010-04-10 16:17 ` Harry Putnam
2010-04-11 6:40 ` Amit Dor-Shifer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BC16EF7.9030608@oversi.com \
--to=amitds@oversi.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox