Using pre/post command to restart Mac OS X
Hi everyone,
I wanted to know how to use pre/post command with Acronis 12 with my Mac OS X
I need to restart my Mac after backing up. I've created an app (reboot.app) on the desktop, when I double-click on, the application restarts my mac.
Now, I dont know how to configure command path, working directory and arguments in order to Acronis can use the app to reboot the mac.
If someone have already configure this...
Thank you !

- Anmelden, um Kommentare verfassen zu können

Hello Guillaume,
Our pre/post command funcitonality only excepts directly executable commands -- things you can launch from the terminal directly. The working directory is the starting point context from which the command runs that is used for the relative paths in the script. If you use absolute paths in your script, you can leave this blank.
Concernig the .app -- this is a directory, which cannot be run directly. You need to run a command that can run the .app
The correct command to run your .app would be "open" and then specify the app to open as the argument.
So the command window would contain:
open (or better yet -- /usr/bin/open)
The working directory:
/path/to/your/app/folder
Arguments:
reboot.app
You can also leave the working directory blank and use the following argument:
/path/to/your/app/folder/reboot.app
Just as a FYI, it is much easier to use shell scripts to make a directly executble "reboot.command" script. Then you can simply point to this command and not bother with working directories or arguments and whatnot.
- Anmelden, um Kommentare verfassen zu können

Hello Igor,
Thank you for your answer, it works fine.
I tried to configure a shell script, it works too. Just few warnings with error code "mac is going to shutdown" but it does not matter.
Thank you !
- Anmelden, um Kommentare verfassen zu können

Hi,
Here's my script bash :
#! /bin/sh
sudo shutdown -h now <<< pwd
Backup seems to be okay.
But here's the warning message after the shutdown :
The activity was canceled by the user. The system is about to be stopped.
Error code 0x01350046 + 0x01350032 + 0x01350032 + 0x01490002 + 0x0135002D + 0x01350004
Configuration is in attached file, if there's any problem...
Anhang | Größe |
---|---|
411242-138535.png | 99.12 KB |
- Anmelden, um Kommentare verfassen zu können