in reply to running command line from Perl
use strict; use warnings; use DBI; my $dbh = DBI->connect('dbi:WMI:'); my $sth = $dbh->prepare('SELECT * FROM Win32_ComputerSystemProduct'); $sth->execute(); while (my @row = $sth->fetchrow) { print $row[0]->{UUID}, "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: running command line from Perl
by cavac (Prior) on May 19, 2022 at 07:08 UTC | |
by LanX (Saint) on May 19, 2022 at 18:44 UTC | |
by cavac (Prior) on May 23, 2022 at 05:25 UTC | |
by LanX (Saint) on May 23, 2022 at 11:37 UTC |