Scripting the ASR command line restore tool
Everything is going well except when I run the script it always seems to hang on the ASR command. I can run it in the terminal window no problems but when I place it in a perl script it just seems to hang.
Can anyone offer a reason which is will not work. Everything else in my script is woking great.
Here is an example of the line I'm trying to run.
SCRIPT-----------
+#!/usr/bin/perl -w+
+print "Restoring Image";+
+`sudo asr restore --source "/Volumes/OSXInstall/Desktop_Image.dmg" --target "/Volumes/Macintosh HD 1" --erase`;+
+print "Image restore finished";+
--------------SCRIPT
Any suggestion would be great. The solution is probably really easy and I just can't see it.
Macbook, Mac OS X (10.6.2), 2gbRam/250GB Drive