[ruby] win32

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

Don't know if it helps:

system('logoff');

./alex

···

--
.w( the_mindstorm )p.

On 6/11/06, Romuald du Song <rdusong@gmail.com> wrote:

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

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

···

On 6/11/06, Alexandru Popescu <the.mindstorm.mailinglist@gmail.com> wrote:

Don't know if it helps:

system('logoff');

./alex
--
.w( the_mindstorm )p.

On 6/11/06, Romuald du Song <rdusong@gmail.com> wrote:
> 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
>

--
-Tout ce qui n'est pas donné est perdu - Hasari Pal