[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [NOVICE] Megastoet dokumenter?



Jørgen Heesche wrote:


Diverse filer, som systemet skriver ud i, vil altid blive oprettet igen.
Det er bare lidt underligt, med faste filer til stdout og stderr (også kaldet primært putput). Hvis man ønsker at se det output efter, at et program er kørt, skal man normalt selv dirigere det til en fil, det er langt mere overskueligt, end at lægge det hele i nogle "skjulte" filer.


Det er åbenbart almindeligt - i min egen /dev ligger f.eks.:


lrwxrwxrwx 1 root root 15 2005-05-21 14:30 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 root root 15 2005-05-21 14:30 stdout -> /proc/self/fd/1
lrwxrwxrwx 1 root root 15 2005-05-21 14:30 stderr -> /proc/self/fd/2


I udgangspunktet er det formentlig bare systemets måde at mappe file descriptors til in/out-strømmene; hvilket vil sige, at "filerne" formentlig ikke eksister som sådan, men at Linux laver noget, som *ligner* en fil for at kunne manipulere den.

Noget lignende ser man for UNIX-sockets, der også "ligner" filer og viser sig ved ls, osv. (i al fald på Solaris).

De store stdout og stdin-filer har formentlig derfor snarere ligget i RAM/swap space end som rigtige filer på disken; MEN der er jo nok ingen tvivl om, at størrelsen viste, at noet var gået galt.

Måske en kernel-hacker out there kan illuminere os noget mere?

 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 21:21 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *