/build/static/layout/Breadcrumb_cap_w.png

Mac OSx 10.x Scripting

Is this the proper section for assistance on Kace Mac scripting? I am new to macs and kace.

So far my windows scripting through Kace has been simple (i have been cheating with autoit exe's), but I have hit a snag in my mac installs; Initially my machines were showing a connection to kace and were even downloading the kace xml files but were not running, i had to reinstall the kace agent using the smb provisioning path from the end users machine, then set the server manually through terminal.

As it stands now the message box and notification are working; what i am struggling with is trying to manage running a shellscript, or a better scenario, an applescript from kace. Anyone with any suggestions will be lauded with praise.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: RobertKing 12 years ago
Senior Yellow Belt
0
Ok, figured it out; I created an Online shell script containing sudo echo "IP URL">>/etc/hosts

works like a charm for editing hosts entries. if there is anyone else struggling with mac scripting hit me up, would be nice to have someone to brainstorm with on these kind of issues.
Posted by: pjgeutjens 12 years ago
Red Belt
0
Hi Robert,

I have no experience with Mac per se (bear with me) but from the limited exposure I've had to OSX, am I mistaken in thinking this is VERY similar to working in a UNIX or LINUX shell environment?

PJ
Posted by: Teitan 12 years ago
Senior Purple Belt
0
As far as i know MAC OS is indeed based on a unix os (bsd if i recall corrrectly) so perhaps this link might help: http://steve-parker.org/sh/sh.shtml
Posted by: RobertKing 12 years ago
Senior Yellow Belt
0
appreciate the info. I was trying to steer away from the unix shell scripts, as I expected permissions issues; this was rooted in my unix/mac ignorance.

I guess im gonna have to scrape the rust off the linux/unix commands(aka google them); While not a fan of macs, or apple in general, it is fun having something new to learn, despite the frustration it brings. As I am learning the KACE environment, I am going to be active on this forum, assisting where I can.

Comments:
  • The agent runs as Root on Macs. In addition to the commands available under Kscripts (when Macintosh is the targeted OS), the Online Shell Scripts can leverage any of the built in languages on the Mac. Perl, Bash, javascript, php, python, ruby and anything else built in can be called. - MacDude 12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ