Menu

#4 Windows LocalMachine script problem

open
nobody
None
5
2008-03-05
2008-03-05
No

We are using ruby for administrative tasks in our Windows Active Directory machines.

We don´t want to do a ruby complete installation.. so Rubyscript2exe was our solution. We have some ruby home-made utilities deployed to our machines, without problems, but I think we have found an error executing a compiled script:

- our machines are connected to Active Directory, and we use Group Policies to launch an vbs script when the machine starts (Local Machine policy).

- the vbs script launchs an rubyexe script made with rubyscript2exe, but the script doesn´t run

While testing, the script code has ended just in:

sleep 10

in the vbs script log, we can see that the rubyexe script is launched, but returns at the next second.

The script runs without problems when you launch it as a user. Even when you do it from another computer, using psexec and the SYSTEM account. But never when you do it from the local machine script.

I have verified permissions, length of "#{eeedir}\\eee.#{application}.exe.2\\eee.gz", redirected output of scripts to files...

The folder "#{eeedir}\\eee.#{application}.exe.X" is created, but the script doesn´t starts, and the folder is not deleted. When you restart, it creates another folder, with a different number.

Folders are created under "Document and Settings\Default User\eee", which is the correct place, as the system account doesn´t has an assigned profile.

I know is a strange error, and probably difficult to resolve. If you need more information, or want me to do any test, mail me.

By the way, thank you for this program. I love programming ruby, and I couldn´t use at work if rubyscript2exe hasn´t been born.

Discussion


Log in to post a comment.