c has asked for the wisdom of the Perl Monks concerning the following question:
sub check_password { ## inquiry to PAM my $pamh = new Authen::PAM($service, $username, \&my_conv_func) or die "Error code during PAM init!\n"; ## grab return from auth process. other than 0 equals failure my $answer = $pamh->pam_authenticate; return $answer; }
However, it looks as though $ERR is always set to 0 since the system call is working.
How can I get the return from my verify.pl script to show up in the value of $ERR?
thanks! -c
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Getting a return code from a perl script called via system()
by Aristotle (Chancellor) on Dec 15, 2002 at 15:13 UTC | |
Re: Getting a return code from a perl script called via system()
by FamousLongAgo (Friar) on Dec 15, 2002 at 15:19 UTC |