/proc are entries in the filesystem, as such I don't see why the file
plugin would fail to access them… unless you cannot use block devices and
such like any other file? In Unix, everything is a file, except those that
have to be special-cased apart?


On 19 March 2015 at 13:08, Norbert Hartl <norb...@hartl.name> wrote:

>
> > Am 19.03.2015 um 11:51 schrieb Esteban Lorenzano <esteba...@gmail.com>:
> >
> >
> >> On 19 Mar 2015, at 11:35, Julien Delplanque <jul...@tamere.eu> wrote:
> >>
> >>
> >> On 19/03/15 11:10, Esteban Lorenzano wrote:
> >>> '/proc/uptime' asFileReference readStreamDo: [ :stream | stream
> contents ].
> >>>
> >>> is better way.
> >>>
> >>> but you will still get an empty string because actually ‘/proc’ does
> not contains real files… so the file plugin does not applies there (and is
> another debate if it should…)
> >>>
> >>> you should use OSProcess instead (installable from Configurations
> Browser)
> >>>
> >>> (PipeableOSProcess command: 'uptime') upToEndOfFile.
> >>>
> >>> Esteban
> >> Oh, I didn't know '/proc' doesn't contains real files. I tought there
> >> were files in this directory since you do 'cat /proc/uptime' in a shell.
> >
> > that’s the O.S. cheating you :)
> >
> Can you elaborate on that statement. What is a "real" file and why are the
> files in /proc not real?
>
> Norbert
>
>
>
>

Reply via email to