Re: help with matching
- From: wiggins@xxxxxxxxxxxx (Wiggins d'Anconia)
- Date: Wed, 09 Nov 2005 12:04:59 -0700
Rob.Savino wrote:
> 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?
perldoc -q "output of a command"
http://danconia.org
>
> Thanks,
>
> Rob
>
.
- References:
- help with matching
- From: Rob.Savino
- help with matching
- Prev by Date: help with matching
- Next by Date: RE: help with matching
- Previous by thread: help with matching
- Next by thread: Re: help with matching
- Index(es):
Relevant Pages
|