Mailinglist Archive: opensuse-programming (84 mails)
| < Previous | Next > |
Problem in output to a kinit process
- From: Sanjay Upadhyay <saneax@xxxxxxxxx>
- Date: Tue, 31 Aug 2004 16:08:22 +0530
- Message-id: <f662426d04083103381e929b7c@xxxxxxxxxxxxxx>
Hi All,
greetings.
I am trying to get a kerberos ticket with the help of a perl script,
so that it is automated. The script works in Redhat however in Suse, I
am encountering problem, where the kinit process waits for user input,
however the requirement is that it should not wait as I am writing the
password to STDIN of the process.
Here is my code, as I am quite new, I may have a wrong understanding.
Any help would be most thankfull.
======This program is in Perl=====
#!/usr/bin/env perl
use warnings;
open (WTR, "| kinit Administrator\@IN.CAL 2> error.txt");
print WTR "password\n";
print WTR "\n";
close WTR;
======
With a simple one liner
echo "freevision" | klist Administrator@xxxxxx
it works OK in MIT version of kinit, but stands still for user in put in Suse...
regards
Saneax
greetings.
I am trying to get a kerberos ticket with the help of a perl script,
so that it is automated. The script works in Redhat however in Suse, I
am encountering problem, where the kinit process waits for user input,
however the requirement is that it should not wait as I am writing the
password to STDIN of the process.
Here is my code, as I am quite new, I may have a wrong understanding.
Any help would be most thankfull.
======This program is in Perl=====
#!/usr/bin/env perl
use warnings;
open (WTR, "| kinit Administrator\@IN.CAL 2> error.txt");
print WTR "password\n";
print WTR "\n";
close WTR;
======
With a simple one liner
echo "freevision" | klist Administrator@xxxxxx
it works OK in MIT version of kinit, but stands still for user in put in Suse...
regards
Saneax
| < Previous | Next > |