Я новичок в python и пытаюсь преобразовать файл расширения .do c в файл .txt с содержимым на linux сервере
. Я установил для папки linux каталог 777
При запуске приведенного ниже сценария верните пустой файл output_file.txt с разрешением 644
Пожалуйста, помогите мне исправить это
import os
import subprocess
from subprocess import call
input_word_file = "file500kb.docx"
output_text_file = "output_file.txt"
os.system('antiword %s > %s' % (input_word_file, output_text_file))
# subprocess.call('antiword %s > %s' % (input_word_file, output_text_file))
# call('antiword %s > %s' % (input_word_file, output_text_file))
# subprocess.check_output('antiword %s > %s' % (input_word_file, output_text_file))
Я пробовал альтернативы для os.system которые в комментариях.