![]() |
|||||||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
#1
|
|||
|
|||
shell script after copy "cannot execute binary" error
Some time ago, you helped me to write a couple of scripts that would unmount a network share after SD had finished copying to it.
Now I'm trying the same trick at work: back up my user directory to a sparseimage on a network share. Backing up works great. But I'm running into an error with the scripts to unmount the share. The script, "RunEjectFacStaff", waits 20 seconds and then runs an AppleScript, "ejectFacStaff", to unmount the share. Code:
#!/bin/sh nohup /bin/bash -c "sleep 20; osascript /Users/mjg14747/Library/Scripts/ejectFacStaff" & The permissions on the text file RunEjectFacStaff are: Code:
-rwxr-xr-x 1 mjg14747 mjg14747 101 Jul 3 10:17 RunEjectFacStaff Then I ask SD to run "RunEjectFacStaff" using the third option under "After copy" in the "Advanced" tab. But, alas, here the checks stop. Code:
| 11:49:04 AM | Error | sh: line 1: /Users/mjg14747/Library/Scripts/RunEjectFacStaff: cannot execute binary file Thanks! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Booting from backup | guruuno | General | 27 | 10-16-2009 11:53 PM |
Errors when attempting to clone drive | russb | General | 2 | 09-01-2007 07:46 AM |
error code=3 ACL issue | vudutu | General | 9 | 12-13-2006 02:32 PM |
Copy error and crash | offdahook84 | General | 3 | 10-01-2005 10:10 PM |
Error: No space left on device | tradervic | General | 11 | 06-29-2005 04:50 PM |