"Anders Nystr�m" <[EMAIL PROTECTED]> writes:

> 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

Try the code below.

 - Pat


use warnings;
use strict;

my $username = $u->{'_meta'}->{'z_user'};
if ($username eq 'openris') {
        $u->read (dos_to_host ('z:\\site\\unattend.txt'));
}
elsif ($username eq '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_id149&alloc_id�66&op=click
_______________________________________________
unattended-info mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to