I am doing my first CONFIG.PL try!
(help needed as I get, for me, not understandable errors)
What I am trying to do is when user OPENRIS logs in (automatic)
then unattend is almost silent,
but when ANDERS logs in unattend would read z:\\site\\unattend.amn.
What is wrong with this :) fine piece of perl ( I have never done perl
before )
tia Anders

use warnings;
use strict;
my $usr_obj = Unattend::IniFile->new ($u->{'_meta'}->{'z_user'});
my $usr_name = $usr_obj->name ();
    if ($usr_name = 'openris' ) {
        $u->read (dos_to_host ('z:\\site\\unattend.txt'));
    }
    elsif ($usr_name = 'anders' ) {
        $u->read (dos_to_host ('z:\\site\\unattend.amn'));
    }
    else {
        die "Unrecognized OS name: $usr_name";
    }
1;



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to