help with matching
- From: Rob.Savino@xxxxxxxxxxx (Rob.Savino)
- Date: Wed, 9 Nov 2005 13:49:50 -0500
I'm working on a simple script to get a list of users who do not exist
while (<>) {
$user = system("echo $_");
$result = system("dsquery user -samID $_");
}
if (!$result) {
print "$user\n";
}
Here is my problem,
dsquery user -samID should return nothing if a user does not exist. I
was hoping the script would print $user only if there was no $result
from dsquery user -samID. However, not only does it print every $user
regardless of the was not $result, it also prints every $result.
Can someone tell me why this is?
Thanks,
Rob
.
- Follow-Ups:
- Re: help with matching
- From: Marilyn Sander
- Re: help with matching
- From: Wiggins d'Anconia
- Re: help with matching
- Prev by Date: Re: XML Question using XML::Element
- Next by Date: Re: help with matching
- Previous by thread: threading stability concerns
- Next by thread: Re: help with matching
- Index(es):
Relevant Pages
|