gabriele renzi <surrender_it / remove.yahoo.it> wrote:

> On my box:
> require 'etc'
> Etc.getlogin #=> "gabriele"

tanxs a lot, this one works fine :)
> BTW you could always do 
> username=`users` 
> to use the OS command 
giving :
irb(main):001:0> username=`users`
SyntaxError: compile error
(irb):1: parse error
username=
         ^
        from (irb):1


probably the ` wasn't correct ?
i had to type in ` followed by a space to get it ?

anyway, one solution is enough to me...

-- 
Yvon