VMware Communities
Sophie424
Contributor
Contributor

Shell script "quit" used to work in 2.x ; strange errors in 3.0

I have this quit_vmware.sh shell script (to shut down Fusion before running a SuperDuper backup)

#!/bin/sh

osascript -e 'tell application "VMWare Fusion" to quit'

It worked fine in 2.x. With 3.0, I get this when I run the script:

-


>> ./quit_vmware.sh

file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd"

<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">

^

>> echo $?

0

-


Stranger, it behaves this way regardless of whether Fusion is running or not.

Am I doing something wrong? Should the Application string be something other than "VMWare Fusion"?

Thanks!

0 Kudos
2 Replies
WoodyZ
Immortal
Immortal

I had no problem running that under OS X 10.6.1 and Fusion 3.0 so I doubt that has anything to do with Fusion.

Also have a look at: Using vmrun to Control Virtual Machines (PDF)

BTW It's VMware not WMWare. Smiley Wink

Sophie424
Contributor
Contributor

Thanks, WoodyZ. I'm on 10.5.6. I switched to vmrun and it seemed to fix the problem.

0 Kudos