Hi,

i am testing this script and have this in my hardware.csv

"00xxx","xxx","xxx","xxx","7-zip.bat,kazaalt.bat,sun-jre.bat,nero.bat,ofc2003.bat,powertoy.bat,spybot.bat,nav2003.bat,ad-aware.bat"

I have the idea that it bail's out after the 7-zip installation.
What am i doing wrong in here?

imdos

On Tue, 2004-09-21 at 17:48, Direct to S-Glos wrote:
> Julien,
> 
> This is the code I use,
> 
> ########################################
> # Compute MIDDLE from inventory sheet, if possible to decide software
> install.
> $u->push_value ('_meta', 'middle',
>     sub {
>         my $mac = $u->{'_meta'}->{'macaddr'};
>         defined $mac
>             or return undef;
>         my $systems = $hard_by_mac->{lc($mac)};
>         defined $systems
>             or return undef;
>         scalar @$systems > 1
>             and die "MAC $mac found more than once in $hard_inv -- bailing";
>         my $MIDDLE = hash_ref ([EMAIL PROTECTED], 'Software');
>         $MIDDLE =~ /\S/
>             or undef $MIDDLE;
>         defined $MIDDLE
>             and print "Found Software string for $mac: $MIDDLE\n";
>         return $MIDDLE;
>     });
> #########################################
> 
> and I have added a column called 'Software ' in the hardware.csv - this
> seems to work fine, I am setting it to admin.cmd for administration
> machines, and I have a default setting in my unattend.txt that is applied to
> all of our other machines.
> 
> Hope that is what you were looking for.  I use a similar hack to add the
> machines to their correct OU at build time as well - which is here...
> 
> ########################################
> # Compute computer OU from inventory sheet, if possible.
> $u->push_value ('Identification', 'MachineObjectOU',
>     sub {
>         my $mac = $u->{'_meta'}->{'macaddr'};
>         defined $mac
>             or return undef;
>         my $systems = $hard_by_mac->{lc($mac)};
>         defined $systems
>             or return undef;
>         scalar @$systems > 1
>             and die "MAC $mac found more than once in $hard_inv -- bailing";
>         my $OrgUnit = hash_ref ([EMAIL PROTECTED], 'OU');
>         $OrgUnit =~ /\S/
>             or undef $OrgUnit;
>         defined $OrgUnit
>             and print "Found OU for $mac: $OrgUnit\n";
>         return $OrgUnit;
>     });
> #########################################
> 
> Regards
> 
> Kevin Lawry
> 
> 
> ----- Original Message ----- 
> From: "Julien TOUCHE" <[EMAIL PROTECTED]>
> To: "Unattended List" <[EMAIL PROTECTED]>
> Sent: Sunday, September 19, 2004 1:24 PM
> Subject: [Unattended] config.pl/csv: script entry
> 
> 
> >
> > is there a way to have the equivalent of top/middle/bottom entries of
> > _meta in software.csv ? or is there any developpement towards this
> > functionnality (the database option ?) ?
> >
> > thanks
> > Regards
> >
> > Julien
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> > Project Admins to receive an Apple iPod Mini FREE for your judgement on
> > who ports your project to Linux PPC the best. Sponsored by IBM.
> > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> > _______________________________________________
> > unattended-info mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/unattended-info
> >
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
> Project Admins to receive an Apple iPod Mini FREE for your judgement on
> who ports your project to Linux PPC the best. Sponsored by IBM.
> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
> _______________________________________________
> unattended-info mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/unattended-info



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to