How can I run cmd command to renew Kerberos ticket in python

858 views Asked by At

Dears, I used to renew kerberos ticket using CMD Command as following: C:\program files (x86)\MIT\kerberos\bin>kinit as below ..

enter image description here

then when i put the password , tkt gets renewed ..

so, how I can run same cmd commands in Python??!!

1

There are 1 answers

3
thisisnotshort On

Try running the command you use inside:

import os
os.system("YOUR COMMAND")