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

892 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 best solutions below

3
On

Try running the command you use inside:

import os
os.system("YOUR COMMAND")