Win32


#1

Hye,

I’m looking for a way to log off a user in windows XP through a ruby
script.
The script is a windows service running with ruby win32/service package.

I was not able to find any win32 module handling this functionnality,
so perhaps I should rely on a complex method, but first
I ask this coooool list for some cooool advice !

Romuald du Song


#2

Don’t know if it helps:

system(‘logoff’);

./alex

.w( the_mindstorm )p.


#3

Thanks. It’s an obvious solution. I’ve forgotten to rely on system
commands
!