Ahmed Darwish
Ahmed Darwish

Reputation: 13

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

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??!!

Upvotes: 0

Views: 1018

Answers (1)

thisisnotshort
thisisnotshort

Reputation: 352

Try running the command you use inside:

import os
os.system("YOUR COMMAND")

Upvotes: 0

Related Questions