简体   繁体   中英

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 ..

在此处输入图片说明

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

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

Try running the command you use inside:

import os
os.system("YOUR COMMAND")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM