hi everyone,
i have set up an old mac mini as a headless server with my usb external harddrive connected to it, and with file sharing and ssh enabled.
on the same network from my macbook, i wish to be able to eject the external harddrive so that i can take the harddrive with me but leave the mac mini running.
i consider myself competent with computers, but not to the level of coding and scripting. the macbook is running 10.7.4 and the mac mini 10.4.11
with the help of google, thus far, i have been able to figure out what to type into terminal on the macbook in order to achieve the desired result of ejecting the harddrive from the mac mini....
ssh Admin@192.168.1.194
(wait for the password prompt and then enter the password (Admin, same as username).
diskutil unmountDisk /dev/disk1
This works, however it's a laborious process to go through for something I will want to do fairly regularly and quickly.
Is there an easy way to consolodate this process into an icon i can just run from my dock, which will automatically run this code and enter the password? i have looked into writing the code into a "shell script" but could not figure out how to get it to enter the password or how to make it executable.
i would appreciate any advice! thankyou
i have set up an old mac mini as a headless server with my usb external harddrive connected to it, and with file sharing and ssh enabled.
on the same network from my macbook, i wish to be able to eject the external harddrive so that i can take the harddrive with me but leave the mac mini running.
i consider myself competent with computers, but not to the level of coding and scripting. the macbook is running 10.7.4 and the mac mini 10.4.11
with the help of google, thus far, i have been able to figure out what to type into terminal on the macbook in order to achieve the desired result of ejecting the harddrive from the mac mini....
ssh Admin@192.168.1.194
(wait for the password prompt and then enter the password (Admin, same as username).
diskutil unmountDisk /dev/disk1
This works, however it's a laborious process to go through for something I will want to do fairly regularly and quickly.
Is there an easy way to consolodate this process into an icon i can just run from my dock, which will automatically run this code and enter the password? i have looked into writing the code into a "shell script" but could not figure out how to get it to enter the password or how to make it executable.
i would appreciate any advice! thankyou