Jano Svitok wrote:
> On Nov 12, 2007 7:07 PM, Ernst Tanaka <ernst / tanakasite.com> wrote:
>> automatically based on the fact if I am behind my computer or not.
>>
>> q's
>> = Does anyone has a better suggestion
> 
> depends on the system you are on.
> on linux/unix, you can do `w`.grep(/your_username/) to see if you're 
> logged in.
> on windows, it would require Win32API or WMI (using COM/Win32OLE)

Thanks for you help -- I will look into that direction.

By the way I am using Windows XP

-- 
Posted via http://www.ruby-forum.com/.