Afficher un message
Vieux 14/03/2008, 18h13   #8
luciosan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: One file for "stout+sterror" and another for "sterror"; it'spossible?

In article
<frbm6e$5fr$2@news.xmission.com>gazelle@xmission.x mission.com (Kenny
McCormack) wrote:
> In article <slrnftij2e.9do.stephane.chazelas@spam.is.invalid> ,
> Stephane CHAZELAS <this.address@is.invalid> wrote:
>> { cmd 2>&1 >&3 | tee -a error.log >&3; } 3>> log.txt

I tried your command, but the log.txt file contains sterror and stout
not in order.In other words, I wrote a script to generate:
1->error
1->out
2->error
2->out
3->error
3->out
4->error
4->out

and I've redirect the error in sterror and in a file (error.log); and
sterror+stout in another file (out.log)

The result is:
"cat error.log"
1->error
2->error
3->error
4->error

and it's ok

but "cat out.log" contains
1->out
2->out
3->out
4->out
1->error
2->error
3->error
4->error

As you can see, the out.log contains sterror+stout but not in order.


--
I'm using an evaluation license of nemo since 204 days.
You should really try it!
http://www.malcom-mac.com/nemo

  Réponse avec citation
 
Page generated in 0,04935 seconds with 9 queries