Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to mount SMB share

Status
Not open for further replies.

nix45

MIS
Nov 21, 2002
478
US
Mac OS 10.2.5

I want to write a script that I can place on the desktop and the user can double click it to execute it (kind of like a Windows .bat file). Is this possible with a Mac?

All the script is going to do is mount an SMB share...

mount_smbfs -W workgroup //username@server/share /mnt/smb

Also, is it possible to make the mounted volume appear on the desktop, like it does when you use the "Connect to Server" feature in the Finder?

Thanks,
Chris
 
I know it is not the answer you are looking for, but why not 'make alias' of the volume when it is mounted, then all the user has to do is double click the alias and up it comes.

If you can't fix it in 20 minutes call someone who can.
 
P20, I just tried your idea, and it does mount the share when you try to open the alias, but the the problem with that is that I can't unmount the share with the alias on the desktop. I'm getting a "file in use" error when I try to "eject" the share.

ps, to anyone reading this, I'm still looking for an answer on how to execute a shell script from the GUI.

Thanks,
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top