We help IT Professionals succeed at work.

How to mount smb share with Shell command on Mac OS X Lion?

Hi,

I have backup utility that needs to be run on schedule on client computers. It's called Backuplist+ We make backups to network share. However when network share is not mounted backup is missed. In this utility there is the option to run shell command before backup. So I need to run shell command to mount this smb network share. It would be very good if this shell command will take password from keychain.
Comment
Watch Question

Author

Commented:
At least tell me how to run applescript from shell. I have the applescript that mount the drive, but I cannot run it from shell.
CERTIFIED EXPERT
Commented:
Create your Applescript.
Compile it into a .app file

run this commend from terminal osascript "script.app"

Author

Commented:
I didn't realized that I need not apple script, but automator application, which is not the same thing. I need to run automator application from command line.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.