[so] [Tema1][Win] Append operator issue

Mihai Cosmin yonutix.mc at gmail.com
Thu Mar 28 19:19:48 EET 2013


Salut,

Am o problema ciudata cu operatorul de redirectare a outputului in mod
append:

Pentru redirectarea unei comenzi intr-un fisier gen
$ echo mumu >> gigel.txt
sau
$ uname >>gigel.txt
imi da eroarea "write error: Bad file descriptor"

In schimb daca fac un program ce contine un fprintf(stdout, "text"); si il
rulez redirectat ca mai sus, functioneaza.

De ce se inampla acest lucru?

Multumesc, o seara buna,
Cosmin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20130328/1a98d6d0/attachment.html>


More information about the so mailing list