[wpkg-users] Psshutdown / Hardcoded Link

Falko Trojahn nospam_ft at smi-softmark.de
Sun Mar 19 10:32:29 CET 2006


Hi all,

rl201 schrieb:
>> Why is psshutdown hard coded into this, curiously? That seems weird to
>> begin with.
> 
> installs take a while and not all machines have the messenger service
> installed. Since suddenly rebooting a machine is a pain in the
> proverbial, I use psshutdown to request a cancellable shutdown with a
> nice message when WPKG needs it. I set the time to 60 seconds for the
> first message. 60 seconds later, if the system is still running, I
> re-issue the reboot request with 59 seconds and so it goes on. I reckon
> that gives a user up to 30 minutes to figure out that the machine
> *really* is going to reboot and allows sufficient time for them to
> complete and save any really important work. Since it uses psshutdown
> (which I don't guarantee exists on a local machine) I open it from the
> same share as WPKG.
> 
> >>> It's not a missing documentation, it's a bug introduced in 0.9.6 :(
>>>
>>> http://bugs.wpkg.org/show_bug.cgi?id=20
>>>
>>> It should be fixed by Monday - Tuesday.

I think, these things should be introduced a bit more customizable, e.g.
as commandline switch:

wpkg.js /shutdownmethod:"%0\..\wpkg\my-shutdown-command.whatever"

If I remember right - "%0\..\" in this example means under Windows:
take the script from the path starting with the location of "wpkg.js",
be it on a server share or mapped network drive.

So if wpkg.js is: \\server\share\wpkg.js, the script in this example
is   \\server\share\wpkg\my-shutdown-command.whatever

If wpkg.js handles this itself it could be shortened to
 wpkg.js /shutdownmethod:"wpkg\my-shutdown-command.whatever"
but this is a bit less flexible.

Without this switch the normal behaviour should be as in 0.9.5 of course.

Other projects even do it this way:
... -r"myscript -option1 -option2" -r"myotherscript -option" ...

Just my 2¢. If I have time on monday I'll send a patch.

Have a nice day
Falko




wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users




More information about the wpkg-users mailing list