[off topic] script help?

ImAMacGuy
Valued Contributor II

In an effort to simplify our jobs here, I want to integrate our macs in
w/ our PC admin rights process. To do so I need to write a login script
that will grab computer / user information, append it to a URL, and
submit the URL to a website, then take the results that the site gives,
and then grant / revoke admin.

Unfortunately I'm not sure how to go about something this complex.

John Wojda

Lead System Engineer, DEI & Mobility

3333 Beverly Rd. B2-338B

Hoffman Estates, IL 60179

Phone: (847)286-7855

Page: (224)532.3447

Team Lead DEI: Matt Beiriger
<mailto:mbeirig at searshc.com;jwojda at searshc.com?subject=John%20Wojda%20Fe
edback&body=I%20am%20contacting%20you%20regarding%20John%20Wojda.>

Team Lead Mobility: Chris
<mailto:cstaana at searshc.com;jwojda at searshc.com?subject=John%20Wojda%20Fe
edback&body=I%20am%20contacting%20you%20regarding%20John%20Wojda.> Sta
Ana

Mac Tip/Tricks/Self Service & Support
<http://bit.ly/gMa7TB>

"Any time you choose to be inflexible in your approach to an
unpredictable project you are already building failure into your plan"

2 REPLIES 2

talkingmoose
Moderator
Moderator

In an effort to simplify our jobs here, I want to integrate our macs in w/ our PC admin rights process. To do so I need to write a login script that will grab computer / user information, append it to a URL, and submit the URL to a website, then take the results that the site gives, and then grant / revoke admin.
On 9/12/11 11:54 AM, "Wojda, John" <John.Wojda at searshc.com<mailto:John.Wojda at searshc.com>> wrote:

Without knowing more I'd say this looks like a job for "curl". Use Terminal to "man curl".

Curl will let you communicate with a web server to pull files. If the results of submitting a URL will give you a file to download then you can parse that to do the rest.

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492

tlarkin
Honored Contributor

My first response was use wget, but then I remembered OS X doesn't have wget installed native, but it has curl which is arguably almost the same thing. How are you currently automating admin rights on the PC?

Could you do this via your directory service (AD, OD, OpenLDAP)?

-Tom