From: "Dumb Kid" <dumbkid@hotmail.com>
To: axp-list@redhat.com
Subject: Perl in Redhat5.2
Date: Sat, 09 Jan 1999 18:37:31 GMT [thread overview]
Message-ID: <19990109183732.1353.qmail@hotmail.com> (raw)
Hi all,
I don't know if it's just me or it's a bug in perl package
that ship with redhat5.2.
I have RedHat5.2 for both Intel and Alpha, and I have no way
to get the "gcos" or "realname" of a user in the password file.
#!/usr/bin/perl
my(@pwent)=getpwnam("root");
print "@pwent\n";
And I can find the realname stored anywhere in @pwent. However,
if I do the following in C:
#include <stdio.h>
#include <pwd.h>
#include <sys/types.h>
main(){
struct passwd *pwent;
pwent = getpwnam("root");
printf("(%s)\n", pwent->gecos);
}
It will show me the "realname", what happened?? Anyone has the
same problem??
Regards,
Tom
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
reply other threads:[~1999-01-09 18:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox