Forum: Ruby win32

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
689e8458e0896bfabca30b65edaa617e?d=identicon&s=25 Romuald du Song (Guest)
on 2006-06-11 21:31
(Received via mailing list)
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
5c4e57ad9f066e56297a60b4a1daa1d3?d=identicon&s=25 Alexandru Popescu (Guest)
on 2006-06-11 21:41
(Received via mailing list)
Don't know if it helps:

system('logoff');

./alex
--
.w( the_mindstorm )p.
689e8458e0896bfabca30b65edaa617e?d=identicon&s=25 Romuald du Song (Guest)
on 2006-06-13 11:35
(Received via mailing list)
Thanks. It's an obvious solution. I've forgotten to rely on system
commands
!
This topic is locked and can not be replied to.