Shirt Pocket Discussions

Shirt Pocket Discussions (https://www.shirt-pocket.com/forums/index.php)
-   General (https://www.shirt-pocket.com/forums/forumdisplay.php?f=6)
-   -   How to automatically shut-down VMWare before SD backup? (https://www.shirt-pocket.com/forums/showthread.php?t=5315)

Sophie 06-08-2009 11:35 PM

How to automatically shut-down VMWare before SD backup?
 
Is there a simple way to do this? My VMWare is already configured to save state before quitting. All I want is a way for SuperDuper to ask VMWare to quit (and wait for the quit) before it runs its backup.

Separately, I am getting an "must be unlocked" error when my scheduled SD job tries to run. If I run it manually I have to type in credentials. How do I set up the scheduled job to not require manual intervention?

Thanks!

dnanian 06-09-2009 04:42 AM

Well, you could try to use a before-copy shell script to do it. You'd want to run an Applescript that would send a "quit" event to VMWare. The script would look something like

Code:

#!/bin/sh
osascript /path/to/the/applescript

Where the AppleScript was something like:

Code:

tell application "VMWare" to quit

sjk 06-09-2009 01:54 PM

Or embed the AppleScript directly in the shell script:

Code:

#!/bin/sh

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

… unless there's some reason why that won't work.

dnanian 06-09-2009 02:12 PM

Nope, that should work as well, but I was replying on my phone and couldn't remember the "-e". :)


All times are GMT -4. The time now is 09:56 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.