我有一個cgi腳本,它調用另一個python腳本,但通過瀏覽器運行第二個腳本不工作。cgi腳本faild調用另一個python腳本
subprocess.Popen([python, 'symantec.py', '-k', "test3.example.com.com.key", '-c',
"test3.example.com.com.csr", '-n', "test3.example.com.com",
'-o', "'IT'", '-p', "war.eagle", '-t', "Server", '-s', "F5",
'-y', "1", '-f', "test3.example.com.com.crt", '-g', "johny", '-l',
"mon", '-e', "[email protected]", '-b', "test3.example.com.com"],
shell=True)
有人可以幫助我確定嗎?
路徑第二個腳本symantec.py
https://github.com/ericjmcalvin/verisign_purchase_ssl_certificate
python變量是什麼?你有什麼錯誤? (除此之外,如果您使用參數列表而不是字符串,則應該設置'''shell = False') – tmrlvi