1 |
Harry Putnam <reader@×××××××.com> writes: |
2 |
|
3 |
>> |
4 |
>> $cat /tmp/testfile |
5 |
>> cat: nonexistantfile: No such file or directory |
6 |
> |
7 |
> Thanks... |
8 |
> |
9 |
>> Are you running cvs as root, or user, or ...? |
10 |
> |
11 |
> I was running cvs as user, and now trying your tests... it appears the |
12 |
> trouble has stopped... doesn't occur now in cvs cmds either. |
13 |
> |
14 |
> There was a reboot in between, so may never now what was going on. |
15 |
> |
16 |
> Prior to rebooting I had tried to get a fresh env by ssh |
17 |
> user@localhost from an xterm. Hoping to rule out some oddball env |
18 |
> problem, but the file descriptor problem persisted. However it has |
19 |
> apparently not survived a reboot. |
20 |
|
21 |
Yikes... more mysterious than I reported above. |
22 |
|
23 |
I see now that I get the goofy acting file descriptors when I'm in |
24 |
console mode, but not in X. |
25 |
|
26 |
And it appears only to happen in cvs commands, but again, not in X. |
27 |
|
28 |
My sequence: |
29 |
|
30 |
Reboot just now. |
31 |
|
32 |
At console login: |
33 |
|
34 |
login and call cvs command: |
35 |
|
36 |
cvs -n update /usr/local/common/base 2>er |
37 |
|
38 |
I see 83 lines scroll by. |
39 |
|
40 |
cat er |
41 |
cat: er: No such file or directory |
42 |
|
43 |
Nothing has been redirected. |
44 |
|
45 |
cvs -n update /usr/local/common/base 2>er|wc -l |
46 |
|
47 |
I still see 83 lines but wc -l reports 0 |
48 |
(as it should) |
49 |
|
50 |
So somehow the redirect is ignored and stderr goes to console |
51 |
anyway. |
52 |
|
53 |
Trying your test |
54 |
cat none 2>er |
55 |
|
56 |
cat er |
57 |
cat: none: No such file or directory |
58 |
|
59 |
So stderr is doing what it is supposed to do with cat but not a cvs |
60 |
command. |
61 |
------- --------- ---=--- --------- -------- |
62 |
Now startx and from an xterm: |
63 |
cvs -n update /usr/local/common/base 2>er |
64 |
<no output> just like expected |
65 |
|
66 |
Follow with: |
67 |
cat er|wc -l |
68 |
83 |
69 |
(83 lines of ouput were captured with 2>er) |
70 |
|
71 |
So this is more puzzling than ever. Weird phenomena in console that |
72 |
stops when in X. |