Re: [PBML] Perl question Getting User Groups
- On 9/22/07, sgmayo@...
> Jeff Pinyan wrote:Oh, sorry. I thought the output was on two lines, but it turns out
> > chomp( ($uid_gid, $groups) = `id $username` );
> I did not realize that. Actually that command pulls everything into
> $uid_gid though. It would be nicer if I could just pull out group
> numbers, but I can parse through that fine I believe. I'll see which is
> easier. To parse that line or to just read in all the groups and see if
> the user is in it.
that's an artifact of the email message itself (a really long line
that had to be broken).
[Mary said,] "Do whatever he tells you." ~ John 2:5