View Single Post
  #7  
Old 07-21-2009, 11:58 PM
Gary@tmi Gary@tmi is offline
Registered User
 
Join Date: Sep 2007
Posts: 5
Quote:
Originally Posted by dnanian View Post
sjk's right here - you'd have to run a shell script, in the background, to do it. Something along the lines of:

Code:
#!/bin/sh
nohup /bin/bash -c "sleep 30; diskutil eject /some/volume" &
I created a text files with the script as discribed, but it results in an error:

Code:
| 09:51:36 PM | Info | ...ACTION: Running shell script eject Drobo2
| 09:51:36 PM | Info | ......COMMAND => Invoking After Copy shell script: /Users/garysumlak/Documents/!Shell Scripts/eject Drobo2
| 09:51:36 PM | Error | sh: /Users/garysumlak/Documents/!Shell Scripts/eject Drobo2: Permission denied
| 09:51:36 PM | Error | ****FAILED****: result=32256 errno=0 (Unknown error: 0)
I am thinking I have to use SUDO, but have no idea how to do this.

Suggestions?

thx
Gary
Reply With Quote