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 must not be doing the right thing here. ne help would be most thankfull.
======
#!/usr/bin/env perl
use warnings;



open (WTR, "| kinit [EMAIL PROTECTED] 2> error.txt"); print WTR "password\n"; print WTR "\n"; close WTR; ====== regards

Sanjay Upadhyay


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to