C'est vrai c'est une meilleure solution.
Le 23/08/06,
brmichel@...<
brmichel@...> a écrit :
> Bonjour,
>
> j'utiliserais plutôt le module Process, et notament les fonctions Process.uid
> et Process.gid. Ces fonctions me semblent plus portables.
>
> --
> Bruno Michel
>
> Quoting Alexis Bernard <
alexis.ber@...>:
>
> > Grâce au module Etc.
> >
> > require 'etc'
> > uid = Etc.getpwnam(Etc.getlogin).uid
> >
> > Forcément ça ne fonctionne que sous Unix.
> >
> > 2006/8/23, man in the hill <
maninthehill@...>:
> >>
> >> Bonjour à tous !
> >>
> >>
> >> Comment puis-je connaître l'uid et le groupe de l'utilisateur qui lance mon
> >> programme ....
> >>
> >>
> >> Merci ,
> >>
> >>
> >> @ bientôt.
> >> --
> >> View this message in context:
> >>
http://www.nabble.com/Connatre-l%27uid-et-le-group-de-l%27utilisateur-%21-tf2151918.html#a5942808> >> Sent from the ruby French forum at Nabble.com.
> >>
> >>
> >>
> >
> >
>
>
>
>