Solved

Scripting hidden windows folder$ in OS X

Posted on 2010-11-18
2
479 Views
Last Modified: 2012-05-10
HI there,

trying to run this script but it doesn't work and i am thinking it has something to do with the $ at the end of all users home folders. Could someone maybe help me writing this script correctly

#!/bin/bash
mkdir ~/WindowsHome
mount_smbfs -N //$USER@windows-server.test.com/$USER$ ~/WindowsHome

the leading dollar is the script dollar and the trailing dollar is the hidden folder dollar

any help appreciated lots of points up for grabs here :-)
0
Comment
Question by:timmy-mac
[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 Comments
 
LVL 12

Accepted Solution

by:
nxnw earned 500 total points
ID: 34169063
I know nothing about SMB or the particular command you are using, but have you tried using single quotes? I am completely guessing at the syntax here, and am putting this in here just to illustrate what I mean:

mount_smbfs -N //$'USER@windows-server.test.com/$USER$' ~/WindowsHome
0
 

Author Closing Comment

by:timmy-mac
ID: 34169248
You prompted me to the correct solution, the single quotes didn't cut it but I then realised if I put " around the trailing dollar it would print the second dollar and not think it as a syntax

Thanks for the mind nudge
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MAC network, 4 47
Application integration into Active Directory 3 38
Sierra iCloud Drive storing data locally 3 29
Free up space on a Mac 2 6
We could spend the next millennium discussing the differences of the Mac and Windows platforms. The next century will continue to have fanatics on both side of the equation and neither side will win the war. However, that’s not why we are here. W…
The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
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 …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 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