stderr

keramida at ceid.upatras.gr keramida at ceid.upatras.gr
Sat Oct 31 17:14:27 EET 1998


% xereto..
% 
% 3erei kaneis pos mporo na katef8eino to stderr px sto /dev/console
% gia oles tis efarmoges??
%  diladi xoris ka8e fora pou trexo mia efarmogi na 
% kano anakatef8insi me >&
% 
% efxaristo.

Ma einai polu aplo.  Peirazeis tov kwdika tns fork() sto kernel, wste
otav avtigrafei ta file descriptors tou parent-process sto
child-process, va bazei avti gia stderr tnv /dev/console pou krataei
pavta avoixtn se eva "magiko" file-descriptor (px. 254).  Meta
peirazeis kai tov terminal driver, wste otav kavei mia diergasia
reacquire eva controlling terminal va mnv tns divei sav stderr to
controlling terminal, alla to /dev/console.

Bebaia, meta apo meres debugging, fobamai oti 0a suveidntopoinseis pws
telika isws va mnv eivai kai polu kalo sav feature va eivai suvexeia
evergopoinmevo.  Tote eivai kairos va baleis eva boot-option sto
kernel, px. to "magicstderr
Alla, pes mou, giati 0eleis va to kaveis auto?  Gia va sou gemizei to
/dev/console me ekatovtades mnvumata, asxeta tis pio polles fores me
auto pou esu kaveis sto termatiko sou?

-- 
Georgios E. Keramidas (keramida at ceid.upatras.gr)
"In the name of the Father, the Son and the Linux-spirit."
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================



More information about the Linux-greek-users mailing list