Solved

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

Posted on 2012-03-13
3
1,143 Views
Last Modified: 2012-03-13
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.
0
Comment
Question by:TarasShumylo
  • 2
3 Comments
 
LVL 3

Author Comment

by:TarasShumylo
ID: 37713641
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.
0
 
LVL 28

Accepted Solution

by:
jhyiesla earned 500 total points
ID: 37714463
Create your Applescript.
Compile it into a .app file

run this commend from terminal osascript "script.app"
0
 
LVL 3

Author Comment

by:TarasShumylo
ID: 37714804
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Syslogd is a utility that traps and logs messages sent by running processes. It is configured with the syslog.conf file, which consists of lines containing a pair of fields: "the selector field which specifies the types of messages and priorities to…
Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question