diskutil through os_process

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

diskutil through os_process

Anibal Escobar
Hi, I'm on Lasso 8 on OSX.  I'd like to get lasso to unmount and mount a drive on the machine serving lasso.  In the shell, I can simply type:

diskutil unmountDisk force /dev/diskID
diskutil mountDisk /dev/diskID

if I do:

var('os' = OS_Process('/bin/bash', array('-c', 'myremountscript')));

where myremountscript contains the diskutil commands, I get the following error:

diskutil: command not found

from os_process.  I've also tried:

var('os' = OS_Process('/usr/sbin/diskutil', array('unmountDisk', 'force', '/dev/diskID')));
etc.

but the page hangs up trying to execute this.  Any suggestions of what I might try?

Thanks,
Anibal Escobar
646 502 8821





#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: diskutil through os_process

Wade Maxfield
> On 4/04/2015, at 07:53, Anibal Escobar <[hidden email]> wrote:
>
> diskutil unmountDisk force /dev/diskID
> diskutil mountDisk /dev/diskID
>
> if I do:
>
> var('os' = OS_Process('/bin/bash', array('-c', 'myremountscript')));
>
> where myremountscript contains the diskutil commands, I get the following error:
>
> diskutil: command not found


What happens when you use the full paths to diskutil in your script, and the full path to your script in the OS_Process?

 - Wade



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>