Re: Determine user dir from postinstall while root [SOLVED]
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On Jul 26, 2007, at 7:38 AM, Knud Hinnerk Möller wrote: Ah, thanks! I didn't even know this variable existed... And just for the record, this is how I access it from Perl: my $USER = `echo \$USER`; chomp($USER); No need to spawn a subshell to just get an environment variable. In simpler Perl, that would just be: my $USER = $ENV{USER} As, for example: $ perl -le 'print $ENV{USER}' knud.moeller $ or whatever. :-) -- Chris Devers _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chris Devers