Pattern Buffer:

Kyle Crawford

Menu

Skip to content
  • Home
  • About

Tag Archives: user

Unattended Install of Mac Package that requires a Logged in User

Posted on August 26, 2012 by Kyle Crawford

Once in a while you run into a package or program that will only work properly with a user logged in.  This can ruin your day if you need to automated the deployment.

I found this method of automatically logging in a user (which is quite awesome).

Using that perl script along with a wrapper script can enable you to automate these can other cases where your only option is to have a user logged in.

I started writing a script to handle this, but it turned out I didn’t need it.  The script is unfinished, but it may give you a head start if you are considering something similar.

It depends on a modified version of the perl script that accepts a username and password.  Just swap out the user and password lines with these that accept arguments.

my $user = $ARGV[0];
my $pass = $ARGV[1];

and I comment out the line to automatically restarts the loginwindow.

#system(‘killall’,’loginwindow’);

Posted in Deployment, Mac OS X, Scripting, Uncategorized | Tagged automatically, bash, force, install, kcpassword, login, mac, osx, package, pkg, script, user | 1 Comment

Archives

  • February 2016
  • May 2014
  • February 2014
  • October 2013
  • June 2013
  • May 2013
  • April 2013
  • September 2012
  • August 2012
  • May 2012
  • February 2012
  • December 2011
  • November 2011
  • August 2011
  • July 2011
  • February 2011
  • May 2010
  • April 2010
  • February 2010
  • October 2009
  • June 2009
  • April 2009
  • March 2009
  • February 2009
  • December 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007

Meta

  • Create account
  • Log in
Create a free website or blog at WordPress.com.
  • Subscribe Subscribed
    • Pattern Buffer:
    • Join 32 other subscribers
    • Already have a WordPress.com account? Log in now.
  • Privacy
    • Pattern Buffer:
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.com
Get started