I do like the super simple applescript, thank you; totally worked, but really, lead me to this working:
mount -t smbfs "//netbios;username:password@hostname/share" /Volumes/share
I had tried %3B for semi-colon and %5C for backslash (before you clued me to the quotes), but that had no effect. Simple solutions are always welcome!
I have a question how to unmount the share drive using the command line after using ther open command.
OR how to use the open command "silent mode ???" without poping up the "Finder window"
Because every time I use the open command, it will open up another "Finder" window.
Can anyone help, because I would need to open and close many share drives when needed from the bash script.
Thanks in advance
When I do a mount, I use the option -o nobrowse. That doesn't create a link on the desktop and the user never "sees" it. Then I do a umount when I'm done.
I am seeing an issue in Lion in my LogoutHook though. I connect to my domain controllers during the LoginHook and the LogoutHook to copy in a new version of the two hooks (I copy the LogoutHook during login and vice versa). Two simple commands:
mount_smbfs -o nobrowse //username:password@path/netlogon /Volumes/netlogon
I can then do a cp and get the latest version from the DC's. This has worked in 10.4 and 10.5 for sure. I don't have a 10.6 box to see if that's working or not. But it is definitely broken in 10.7.2. The mkdir works, but the mount gives me:
mount_smbfs: server rejected the connection: authenication error