0

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 Answers1

0

Try running the command you use inside:

import os
os.system("YOUR COMMAND")
thisisnotshort
  • 342
  • 3
  • 11
  • Note: this will only work for commands that do not require admin acces – thisisnotshort Oct 15 '20 at 08:07
  • See "https://stackoverflow.com/a/25558966/13896565" if you want to run commands that require admin access – thisisnotshort Oct 15 '20 at 08:10
  • Tip: implement your comments with your answer. Comment is for reply to one others comment. It als increases your answers value and may help accelerate up-voting. – ZF007 Oct 15 '20 at 09:41