Problem in output to a process in perl
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.
open (WTR, "| kinit Administrator\@IN.CAL 2> error.txt");
print WTR "password\n";
print WTR "\n";