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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 10/28/2011 by: RobertKing
Senior Yellow Belt

Please log in to comment
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
Answered 11/02/2011 by: pjgeutjens
Red Belt

Please log in to comment
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
Answered 11/02/2011 by: Teitan
Senior Purple Belt

Please log in to comment
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.
Answered 11/02/2011 by: RobertKing
Senior Yellow Belt

  • 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.
Please log in to comment
Answer this question or Comment on this question for clarity