Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2012-03-13
3
Medium Priority
?
1,169 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Worried about if Apple can protect your documents, photos, and everything else that gets stored in iCloud? Read on to find out what Apple really uses to make things secure.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

604 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