On Sunday 11 March 2007 12:14, Anders Norrbring wrote:
> ...
>
> I don't think it's a long time, after all, it has to shut down 17 VMs
> before exiting.. ;) I'm certain it can be solved somehow, I just
> don't see it ATM.. I'll keep looking at it.
It's easy enough to write a script that does not return until no
instances of a given executable are running, especially if the
executable is a unique one, which VMware's executive is ("vmware-vmx",
at least as of version 5.5 under a Linux host OS). A simple while loop
using pidof is enough:
while pidof vmware-vmx >/dev/null 2>&1; do
echo vmware-vmx still running
sleep 2
done
The next part, getting the shutdown process to wait might be a little
trickier. I recommend studying the manual pages for init and inittab. I
think in essence adding a wait-style action (i.e., one with "wait" in
its third field) for run level 0 that invokes the
wait-for-VMware-to-exit script should suffice.
Good luck. Let us know what you come up with. I occasionally shut down
without remembering to stop my VMware process ('cause I tend to keep
the window minimized and often forget that's running).
Randall Schulz
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]